-47-
v7.3
Software
4.12. e-mail management functions
4.12.1. Reseting e-mail parameters
The
emailReset()
function resets the current e-mail parameters in the memory of the module to the default
ones. The values reset are:
•
e-mail user name
•
e-mail password
•
e-mail sender address
•
e-mail SMTP server
Example:
{
_4G.emailReset();
}
4.12.2. Setting the SMTP server
The
emailSetServerSMTP()
function sets the SMTP server address, used for e-mail sending. The function expects
an input parameter for the SMTP server address. This parameter can be either:
•
Any valid IP address in the format: xxx.xxx.xxx.xxx
•
Any host name to be solved with a DNS query (factory default is the empty string “”)
Example:
{
_4G.emailSetServerSMTP(“smtp.mydomain.com”);
}
4.12.3.
Configuring SMTP parameters
The
emailConfigureSMTP()
function sets the parameters needed to the SMTP connection. The input parameters
for this function are:
•
Security:
parameter indicating if the SSL encryption is enabled. The possibilities are:
-
Wasp4G::EMAIL_NONSSL
-
Wasp4G::EMAIL_SSL
•
Port:
SMTP port to contact (default 25). Range is from 1 to 65535.
Example:
{
_4G.emailConfigureSMTP(Wasp4G::EMAIL_NONSSL, 25);
}
Note:
some servers support an obsolete implementation of SMTPS on port 465. The module only supports the standard
implementation of SMTP over SSL/TLS described in RFC 3207. So do not use port 465 on servers with an obsolete
implementation of SMTPS: the module will not work properly. Use instead port 25 or port 587.
Содержание LE910
Страница 1: ...Waspmote 4G Networking Guide ...