<pre>
Use this operation to get smtp server details..
</pre>
438960
public static smtp_server[] get(nitro_service client) throws Exception
	{
		smtp_server resource = new smtp_server();
		resource.validate("get");
		return (smtp_server[]) resource.get_resources(client);
	}
744635
@SuppressWarnings("unchecked")
    @Override
    public String execute() {
        User sfsUser = CommandUtil.getSfsUser(username, api);
        return (sfsUser == null) ? "" : sfsUser.getIpAddress();
    }
899819
public ArrayList<OvhIpDetails> serviceName_ip_network_details_GET(String serviceName, String network) throws IOException {
		String qPath = "/dedicatedCloud/{serviceName}/ip/{network}/details";
		StringBuilder sb = path(qPath, serviceName, network);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t3);
	}
811062
public ArrayList<OvhOperation> project_serviceName_operation_GET(String serviceName) throws IOException {
		String qPath = "/cloud/project/{serviceName}/operation";
		StringBuilder sb = path(qPath, serviceName);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t8);
	}
1370648
public String getAccountEmail() {
    if (emails != null) {
      for (final Entry<String, String> entry : emails.entrySet()) {
        if (entry.getValue().equals("account")) {
          return entry.getKey();
        }
      }
    }
    return null;
  }
955252
def request_server_info(self):
        ''' 

        '''
        if self._server_info is None:
            self._server_info = self._send_request_server_info()
        return self._server_info
574771
protected function smtp_get_response()
	{
		$data = '';

		// set the timeout.
		stream_set_timeout($this->smtp_connection, $this->config['smtp']['timeout']);

		while($str = fgets($this->smtp_connection, 512))
		{
			$info = stream_get_meta_data($this->smtp_connection);
			if($info['timed_out'])
			{
				throw new \SmtpTimeoutException('SMTP connection timed out.');
			}

			$data .= $str;

			if (substr($str, 3, 1) === ' ')
			{
				break;
			}
		}

		return $data;
	}
318952
public static ns_detail_vlan[] get(nitro_service client) throws Exception
	{
		ns_detail_vlan resource = new ns_detail_vlan();
		resource.validate("get");
		return (ns_detail_vlan[]) resource.get_resources(client);
	}
592648
public Email getEmail(CmsObject cms, I_CmsNewsletterRecipient recipient) throws CmsException {

        StringBuffer htmlMsg = new StringBuffer(1024);
        StringBuffer txtMsg = new StringBuffer(1024);
        Iterator<I_CmsNewsletterContent> contents = m_contents.iterator();
        while (contents.hasNext()) {
            I_CmsNewsletterContent content = contents.next();
            if (recipient.isSubscriber(content)) {
                if (content.getType().equals(CmsNewsletterContentType.TYPE_HTML)) {
                    htmlMsg.append(content.getContent());
                } else {
                    txtMsg.append(content.getContent());
                }
            }
        }
        Email email = null;
        try {
            if ((htmlMsg.length() > 0) || !m_attachments.isEmpty()) {
                // we need to create a HTML mail
                CmsHtmlMail htmlMail = new CmsHtmlMail();
                htmlMail.setHtmlMsg(replaceMacros(htmlMsg.toString(), recipient));
                Iterator<CmsResource> attachments = m_attachments.iterator();
                while (attachments.hasNext()) {
                    CmsResource resource = attachments.next();
                    // set the description of the attachment either to the
                    // property description, if it is set, or
                    // to the property title
                    String description = "";
                    String propertyDescription = cms.readPropertyObject(
                        cms.getSitePath(resource),
                        CmsPropertyDefinition.PROPERTY_DESCRIPTION,
                        true).getValue();
                    if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(propertyDescription)) {
                        description = propertyDescription;
                    } else {
                        String propertyTitle = cms.readPropertyObject(
                            cms.getSitePath(resource),
                            CmsPropertyDefinition.PROPERTY_TITLE,
                            true).getValue();
                        description = propertyTitle;
                    }
                    htmlMail.attach(new CmsVfsDataSource(cms, resource), resource.getName(), description);
                }
                htmlMail.setTextMsg(replaceMacros(txtMsg.toString(), recipient));
                email = htmlMail;
            } else {
                // only text content, return text mail
                CmsSimpleMail textMail = new CmsSimpleMail();
                textMail.setMsg(replaceMacros(txtMsg.toString(), recipient));
                email = textMail;
            }
            email.addTo(recipient.getEmail());
            email.setSubject(m_subject);
        } catch (EmailException e) {
            LOG.error(Messages.get().getBundle().key(Messages.LOG_COMPOSE_MAIL_ERR_0), e);
        }
        return email;
    }
402970
public JsonResponse getAlert(String email) throws IOException {
        Map<String, Object> data = new HashMap<String, Object>();
        data.put(Alert.PARAM_EMAIL, email);
        return apiGet(ApiAction.alert, data);
    }
476808
public com.google.protobuf.ByteString
      getOperationBytes() {
    java.lang.Object ref = operation_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      operation_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
35098
def info(self):
        '''
        '''
        if sys.version_info[0] == 2:
            return mimetools.Message(io.StringIO(str(self._response.fields)))
        else:
            return email.message_from_string(str(self._response.fields))
209699
public OvhAccountDelegated delegatedAccount_email_GET(String email) throws IOException {
		String qPath = "/email/domain/delegatedAccount/{email}";
		StringBuilder sb = path(qPath, email);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhAccountDelegated.class);
	}
237351
public java.lang.String getServerIp() {
    java.lang.Object ref = serverIp_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      serverIp_ = s;
      return s;
    }
  }
1096618
public static boolean verify(String host, String username, String password, int port) throws SMTPException {
	try {
	    return _verify(host, username, password, port);
	}
	catch (MessagingException e) {

	    // check user
	    if (!StringUtil.isEmpty(username)) {
		try {
		    _verify(host, null, null, port);
		    throw new SMTPExceptionImpl("can't connect to mail server, authentication settings are invalid");
		}
		catch (MessagingException e1) {

		}
	    }
	    // check port
	    if (port > 0 && port != 25) {
		try {
		    _verify(host, null, null, 25);
		    throw new SMTPExceptionImpl("can't connect to mail server, port definition is invalid");
		}
		catch (MessagingException e1) {}
	    }

	    throw new SMTPExceptionImpl("can't connect to mail server");
	}
    }
1286703
public static server[] get(nitro_service service, server_args args) throws Exception{
		server obj = new server();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		server[] response = (server[])obj.get_resources(service, option);
		return response;
	}
712219
public MBeanOperationInfo[] getOperationsInfo(String domainName, String beanName) throws JMException {
		return getOperationsInfo(ObjectNameUtil.makeObjectName(domainName, beanName));
	}