
-42-
v4.9
SMTP and POP3 related functions
8.2. Receiving emails with POP3
8.2.1. Setting the POP3 server parameters
This function sets the parameters for the POP3 server.
Example of use:
{
// Configures the SMTP server:
setPOP3server(“pop.server.com”, 110, “username”, ”password”);
}
This function returns:
•
‘1’ on success
•
‘0’ if error setting the APN
•
‘-2’ error sending the email
•
‘-3’ if error setting the APN with CME error code available
8.2.2. Getting a list of emails
This function get a list with the total number of emails.
Example of use:
{
// Configures the SMTP server:
total_email = getPOP3list();
}
This function returns:
•
the total number of emails
•
‘-2’ if error logging in the POP3 server
•
‘-3’ getting the e-mail number and total size
8.2.3. Getting the header of an email
This function gets the header of the email specified in index and stores it in
buffer_3G
.
Example of use:
{
// Configures the SMTP server:
getPOP3header(6);
}
This function returns:
•
‘1’ on success
•
‘-1’ if error logging in the POP3 server
•
‘-2’ if error getting the header of the e-mail
Содержание Waspmote 3G Plus GPS
Страница 1: ...Waspmote 3G GPS Networking Guide ...