At+Qsmtpclr Clear The Content Of An Email - Quectel AG35 SMTP At Command Manual

Lte module
Table of Contents

Advertisement

<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.
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
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"
OK
AT+QSMTPATT?
+QSMTPATT: 1,"RAM:test.txt",200
OK
//Of course, you can delete all attachments as follows:
AT+QSMTPATT=0
OK
AT+QSMTPATT?
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.
AT+QSMTPCLR Clear the Content of an Email
Test Command
AT+QSMTPCLR=?
AG35_SMTP_AT_Commands_Manual
AG35 SMTP AT Commands Manual
//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.
//Add an attachment for email and the file index is 1.
//Query the attachments.
//Delete all attachments for the email.
//Query the attachments.
Response
OK
Confidential / Released
LTE Module Series
16 / 30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents