LTE Module Series
EC2x&EG9x&EM05 SMTP AT Commands Manual
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual 13 / 31
//Add subject for email and the <charset> is UTF8. “7465737420534D5450” is the hex string of “TEST
SMTP”.
AT+QSMTPSUB=1,"7465737420534D5450" //Edit subject and the character set is 1 which means
UTF8.
OK
AT+QSMTPSUB? //Query subject of the email.
+QSMTPSUB: 1,"7465737420534D5450"
OK
2.4. AT+QSMTPBODY Edit the Body of an Email
The command is used to edit the body of an email. When AT+QSMTPBODY is executed, the module will
enter into data mode. All inputted data will be the body of email. If the inputted data reaches the
<body_length> or the time reaches <input_time>, the module will exit from data mode automatically. If the
inputted data is less than the <body_length>, customers can finish editing body by inputting “+++” or
changing DTR level from low to high before <input_time> reaches. The maximum size of the email body
is 10 Kbytes. The actual body length is the inputted data length.
Parameter
<charset> Integer type. The character set of the body.
0 ASCII
AT+QSMTPBODY Edit the Body of an Email
Test Command
AT+QSMTPBODY=?
Response
+QSMTPBODY: (0-3),(1-10240),(1-65535)
OK
Read Command
AT+QSMTPBODY?
Write Command
AT+QSMTPBODY=<charset>,<body_l
ength>[,<input_time>]
Response
If the format is correct and it is not sending an email:
CONNECT
<Input body data>
+QSMTPBODY: <input_length>
OK
If there is any error, response:
+CME ERROR: <err>