
Chapter 3 – SMTP/POP3 Email Services
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D) 23
#PUTMAIL Send Host Mail
Definition: This command allows the attached host to send an email message containing body text passed to the
TCP/IP stack over the serial port. Once an IP link is established, the attached host can 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, CCREC1 and SUBJ1 parameters.
This command is similar to a “send email” operation issued by a standard messaging client on a PC.
Values: Read Parameters:
REC1
CCREC1
SUBJ1
SENDERADDR
SENDERNAME
DOMAIN
SMTPPORT
SMTPSERV
SMTPPW
SMTPUN
Syntax: AT#PUTMAIL
Command Possible Responses
AT#PUTMAIL
Note: You have to configure
only receiver address1, copy
address1, and subject1
before or during the session,
but content (body) of the
email is typed when the
TCP/IP session is
established. Content is not
echoed.
OK_Info_WaitingForData
Notes: An SMTP session has been successfully opened with the
remote SMTP server.
Once the TCP/IP stack has displayed this message, all the
data received on the serial port is sent within the email body.
The (CR)(LF)(.)(CR)(LF) sequence sent by the attached host
indicates the TCP/IP stack the end of the email body.
<content>
Note: Content is not written
when typing
<CR><LF> . <CR><LF>
Note: Termination sequence
<CR> = <Enter>, <LF> =
<Ctrl Enter>
OK
Note: The mail has been successfully sent.
AT#PUTMAIL #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 filled
in.
AT#PUTMAIL #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:
- DNS servers are not able to resolve the SMTP server
address.
- SMTP server is temporarily out of service.
- Authentication (SMTPUN, SMTPPW) is not valid.
- An email address specified in REC1 or CCREC1 is not
valid.
- An inactivity period of 50 seconds on the serial port.
See section ‘Response messages and error codes’
Comentarios a estos manuales