-48-
v7.3
Software
4.12.4. Setting the sender parameters: address, username and password
The
emailSetSender()
function sets the sender parameters. The input parameters related are:
•
Address:
the address string to be used for sending the e-mail.
•
Username:
the username string to be used for sending the e-mail.
•
Password:
the authentication password to be used during the authentication step of the SMTP.
Example:
{
char address[] = “[email protected]”;
char user[] = “[email protected]”;
char password[] = “myPassword”;
_4G.emailSetSender(address, user, password);
}
Possible error codes for this function:
•
1: if error setting the sender address
•
2: if error setting the sender user
•
3: if error setting the sender password
4.12.5. Saving e-mail parameters
The
emailSave()
function saves the actual e-mail parameters in the memory of the module. The values reset are:
•
e-mail user name
•
e-mail password
•
e-mail sender address
•
e-mail SMTP server
Example:
{
_4G.emailSave();
}
4.12.6. Sending an e-mail
The
emailSend()
function sends an e-mail message. The input parameters needed for this function are:
•
Address:
destination address.
•
Subject:
subject of the message. The maximum length is 100 characters.
•
Body:
the main text message of the e-mail.
Example:
{
char address[] = “[email protected]”;
char subject[] = “Subject of email”;
char message[] = “This is an e-mail message from Waspmote”;
_4G.emailSend(address, subject, message);
}
Possible error codes for this function:
Содержание LE910
Страница 1: ...Waspmote 4G Networking Guide ...