Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Wireless Office Headset User Manual


 
Part 1 AT Commands for All Universal IP Devices Chapter 2 – SMTP AT Commands
Universal IP AT Commands Reference Guide (Document S000457K) 23
#SENDMAILiSend Mail without Interactive Mode
Important Note: MT5692SMI-IP supports only SENDMAIL1 options.
Description: 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 command is similar to a “send email” operation issued by a standard messaging client on a
PC.
Syntax: AT#SENDMAILi
Example: Note: In #SENDMAILi, the i is to be replaced with #SENDMAIL1, #SENDMAIL2, or
#SENDMAIL3.
Command
Possible Responses
AT#SENDMAIL1
Note: Send predefined
mail #1
OK
Note: Mail 1 has been successfully sent
AT#SENDMAIL2
Note: Send predefined
mail #2
OK
Note: Mail 2 has been successfully sent
AT#SENDMAIL3
Note: Send predefined
mail #3
OK
Note: Mail 3 has been successfully sent
AT#SENDMAIL2
#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.
AT#SENDMAIL1
#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’.
To view parameters, use #VMAIL and #VSMTP. They are also listed in #VMAILi (where i = 1, 2, or 3)