LTE Module Series
AG35 SMTP AT Commands Manual
AG35_SMTP_AT_Commands_Manual Confidential / Released 16 / 30
Example
//Customers can add attachments from RAM. After the email is sent, the file uploaded to RAM should be
deleted by AT+QFDEL. The detailed example is shown as follows:
AT+QFUPL=“RAM:test.txt”,200,300,1 //Upload a file to RAM. The file will be saved as “test.txt”
and the maximum size of file is 200 bytes. 300 indicates
timeout, and 1 indicates ACK mode. For details, please
refer to Quectel_AG35_FILE_Application_Note.
CONNECT
<Input 200 bytes data>
+QFUPL: 200,707
OK
AT+QFLST=“RAM:*”
+QFLST: “RAM:test.txt”,200
OK
AT+QSMTPATT=1,1,“RAM:test.txt” //Add an attachment for email and the file index is 1.
OK
AT+QSMTPATT? //Query the attachments.
+QSMTPATT: 1,“RAM:test.txt”,200
OK
//Of course, you can delete all attachments as follows:
AT+QSMTPATT=0 //Delete all attachments for the email.
OK
AT+QSMTPATT? //Query the attachments.
OK
2.6. AT+QSMTPCLR Clear the Content of an Email
AT+QSMTPCLR will clear all the configurations of AT+QSMTPDST, AT+QSMTPSUB, AT+QSMTPBODY
and AT+QSMTPATT.
<file_size> Integer type. The size of the attachment. Unit: byte.
<err> Integer type. The error code of the operation. Please refer to Chapter 5.
AT+QSMTPCLR Clear the Content of an Email
Test Command
AT+QSMTPCLR=?