At+Qsmtpsub Edit The Subject Of An Email - Quectel AG35 SMTP At Command Manual

Lte module
Table of Contents

Advertisement

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.
AT+QSMTPSUB Edit the Subject of an Email
Test Command
AT+QSMTPSUB=?
Read Command
AT+QSMTPSUB?
Write Command
AT+QSMTPSUB=<charset>,<subject>
Parameter
<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.
Example
//Add subject for an email and the <charset> is ASCII.
AT+QSMTPSUB=0,"TEST SMTP"
OK
AT+QSMTPSUB?
+QSMTPSUB: 0,"TEST SMTP"
OK
AG35_SMTP_AT_Commands_Manual
AG35 SMTP AT Commands Manual
Response
+QSMTPSUB: (0-3),<subject>
OK
Response
+QSMTPSUB: <charset>,<subject>
OK
Response
OK
Or
+CME ERROR: <err>
//Edit subject and the character set is 0 which means ASCII.
//Query subject of the email.
Confidential / Released
LTE Module Series
12 / 30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents