ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 449 of 545 2020-04-15
3.15.7. AT#EMAILD - E-mail Sending
This command sends an e-mail message.
AT#EMAILD=[<da>,<subj>]
A PDP context shall have been activated through AT#SGACT=x,1. The context "x" is the one used
by SMTP, as specified by #SMTPCFG command. After command line is terminated with <CR>, the
device responds sending a four character sequence prompt:
<CR><LF><greater_than><space> (see IRA character set: 13, 10, 62, 32)
To complete the operation, send Ctrl-Z char (0x1A hex). To exit without completing the operation
send ESC char (0x1B hex).
If the e-mail message is successfully sent, then the response is OK. If message sending fails for
some reason, an error code is reported.
Parameters:
destination address (maximum length 100 characters).
subject of the message (maximum length 100 characters).
If the length of one of the string type parameters exceeds the maximum length, then
module returns an error indication.
Care must be taken to ensure that during the command execution, no other commands
are issued: to avoid malfunctions it is suggested to wait for the OK or ERROR / +CMS
ERROR:<err> response before issuing further commands.
Maximum length for message body is 1500: trying to send more data will cause the
surplus to be discarded and lost.
AT#EMAILD=?
Test command returns OK result code.
AT#EMAILD="me@myaddress.com","subject of the mail"
>message body... . This is the text of the mail message
CTRL-Z
... wait...
OK
Message has been sent.