LTE Module Series
EC2x&EG9x&EM05 SMTP AT Commands Manual
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual 12 / 31
2.3. AT+QSMTPSUB Edit the Subject of an Email
The command is used to edit the subject of an email. If <charset> is not ASCII, the inputted data should
be the hex string of the original subject.
Parameter
Example
//Add subject for an email and the <charset> is ASCII.
AT+QSMTPSUB=0,"TEST SMTP"
//Edit subject and the character set is 0 which means ASCII.
OK
AT+QSMTPSUB?
//Query subject of the email.
+QSMTPSUB: 0,
"
TEST SMTP
"
OK
AT+QSMTPSUB
Edit the Subject of an Email
Test Command
AT+QSMTPSUB=?
Response
+QSMTPSUB: (0-3),<subject>
OK
Read Command
AT+QSMTPSUB?
Response
+QSMTPSUB: <charset>,<subject>
OK
Write Command
AT+QSMTPSUB=<charset>,<subject>
Response
OK
Or
+CME ERROR: <err>
<charset>
Integer type. The character set of the subject.
0 ASCII
1 UTF-8
2 GB2312
3 BIG5
<subject>
String type. The subject of the email. If <charset> is 0, this string will be the subject of
the email. Otherwise, it is formatted as a hex
string, e.g. “41” means the hex value
0x41. If the character set is ASCII, the length of <subject > is 0-100 in unit of byte. If
the character set is not ASCII, the length of <subject> should be even and the range
is 0-200 in unit of byte.
<err>
Integer type. The error code of the operation. Please refer to
Chapter 5
.