Appendix A – Getting Started Examples
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
46
Sending/Retrieving Email
Sending an Email: AT#PUTMAIL
Commands
Responses
AT#SMTPSERV= ”smtp.domain.com”
Note: SMTP server used
OK
AT#DOMAIN= ”domain.com”
Note: Domain name
OK
AT#SENDERNAME= ”Test module”
Note: Sender name
OK
AT#SENDERADDR= ”[email protected]”
Note: Sender email address
OK
AT#REC1= [email protected]
Note: Recipient email address
OK
AT#CCREC1= [email protected]
Note: Carbon Copy recipient
OK
AT#SUBJ1= “Email Subject”
Note: Email Subject
OK
AT#PUTMAIL
Note: Send an email (type the email text and then the end
sequence)
OK_Info_WaitingForData
Note: The software is ready to receive incoming
data (not echoed)
At the end of date, the
[CR][LF] . [CR][LF]
sequence ends the email. This sequence can be
sent by a keyboard using:
ENTER
CTRL+ENTER
.
ENTER
CTRL+ ENTER
Note: End sequence sent
OK
Note: The email is successfully sent
Retrieving an Email: AT#GETMAIL
Commands
Responses
AT#POP3SERV= ”pop3.domain.com”
Note: POP3 server used
OK
AT#POP3UN= ”[email protected]”
Note: POP3 username (not always the complete email
address). It is the POP3 login
OK
AT#POP3PW = ”password”
Note: POP3 password
OK
AT#GETMAIL
Note: Retrieve an email
OK_Info_Mail
Note: The software switches from command
mode to data mode for receiving the email
content.
Data
Data
.
Note: At the end of data, the [CR][LF] . [CR][LF]
sequence notifies the end of the data mode
OK
Note: The email is successfully retrieved