
Chapter 2 – SMTP AT Commands
24 Universal IP AT Commands Reference Guide
#SENDMAILi – Send Mail without Interactive Mode
Description: MT5692SMI-IP supports only SENDMAIL1 options.
This command sends one of the 3 pre-defined email combinations. Once an IP link is
established, the attached host can direct the TCP/IP stack to send an email message at any time
(except when the TCP/IP stack software is already in a process using TCP resources).
The header of this email is built using the REC1/2/3, CCREC1/2/3 and SUBJ1/2/3 parameters
while the body is filled in the BODY1/2/3 parameter.
This is similar to a “send email” operation issued by a standard messaging client on a PC.
Syntax: AT#SENDMAILi
Replace the i with #SENDMAIL1, #SENDMAIL2, or #SENDMAIL3.
To view parameters, use #VMAIL and #VSMTP. Also listed in #VMAILi (where i = 1, 2, or 3)
Example:
AT#SENDMAIL1
(Send predefined mail #1)
OK
Note: Mail 1 has been successfully sent
AT#SENDMAIL2
(Send predefined mail #2)
OK
Note: Mail 2 has been successfully sent
AT#SENDMAIL3
(Send predefined mail #3)
OK
Note: Mail 3 has been successfully sent
#CME ERROR: 38027
Notes: The address of the SMTP server has not been resolved by the
secondary DNS server.
TCP/IP stack is not able to reach the primary or secondary DNS servers or a
wrong SMTP server address has been entered.
#CME ERROR: <value>
Notes: An error has occurred during the communication with the remote
SMTP server. It may also happen during the data transfer (after the OK
message).
This error can be due to one of the following reasons:
- The DNS servers are not able to resolve the SMTP server address
- The SMTP server is temporarily out of service
- The authentication (SMTPUN, SMTPPW) is not valid
- Email address specified in REC1 or CCREC1 is not valid
See section ‘Response messages and error codes’.
Comentarios a estos manuales