EasyManuals Logo
Home>Quectel>Control Unit>EC2 Series

Quectel EC2 Series Command Manual

Quectel EC2 Series
32 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #17 background imageLoading...
Page #17 background image
LTE Module Series
EC2x&EG9x&EM05 SMTP AT Commands Manual
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual 16 / 31
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_EC2x&EG9x&EM05_FILE_AT_
Commands_Manual.
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
//Delete all attachments.
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.

Other manuals for Quectel EC2 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Quectel EC2 Series and is the answer not in the manual?

Quectel EC2 Series Specifications

General IconGeneral
BrandQuectel
ModelEC2 Series
CategoryControl Unit
LanguageEnglish

Related product manuals