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 #7 background imageLoading...
Page #7 background image
LTE Module Series
EC2x&EG9x&EM05 SMTP AT Commands Manual
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual 6 / 31
1.2. The Process of Sending Email
As EC2x&EG9x&EM05 modules support SMTP protocol, customers can send emails easily by
EC2x&EG9x&EM05 SMTP AT commands. The general process is as follows:
Step 1: Configure and activate a PDP context.
1) Configure <APN>, <username>, <password> and other parameters of a PDP context by
AT+QICSGP. Please refer to Quectel_EC2x&EG9x&EM05_TCP(IP)_AT_Commands_Manual
for details.
If QoS settings need to be updated, configure them by AT+CGQMIN, AT+CGEQMIN,
AT+CGQREQ and AT+CGEQREQ commands. For more details, please refer to
Quectel_EC25&EC21_AT_Commands_Manual, Quectel_EG9x_AT_Commands_Manual and
Quectel_EM05_AT_Commands_Manual.
2) Activate the PDP context by AT+QIACT.
3) Configure the PDP context ID for SMTP by AT+QSMTPCFG="contextid",<contextID>.
Step 2: Configure SMTP server and user account.
1) Configure SSL type by AT+QSMTPCFG="ssltype",<ssltype>. If <ssltype> is SSL or STARTTLS,
customers should choose an SSL context by AT+QSMTPCFG="sslctxid",<sslctxID> and
configure the <sslctxID> by AT+QSSLCFG="ciphersuite",<sslctxID>,<ciphersuites>. For more
details about these commands, please refer to Quectel_EC2x&EG9x&EM05_SSL_AT_
Commands_Manual.
2) Configure SMTP server by AT+QSMTPCFG="smtpserver",<srvaddr>,<srvport>. <srvaddr> and
<srvport> parameters depend on the mail service provider.
3) Configure account information by AT+QSMTPCFG="account",<username>,<password>.
4) Configure sender information by AT+QSMTPCFG="sender",<sender_name>,<sender_email>.
Step 3: Edit the email content.
1) Configure the recipient email address by AT+QSMTPDST.
2) Configure the subject of email by AT+QSMTPSUB.
3) Configure the body of email by AT+QSMTPBODY.
4) Add attachments for the email by AT+QSMTPATT. The attachments can be RAM, UFS or SD
files. And the files can be uploaded to RAM, UFS or SD card by AT+QFUPL. After sending email
successfully, the file should be deleted by AT+QFDEL. For more details of these commands,
please refer to Quectel_EC2x&EG9x&EM05_FILE_AT_Commands_Manual
Step 4: Send email.
Send the email by AT+QSMTPPUT. It will take some time to send the email depending on the total
size of attachments and network status. When the sending action ends, “+QSMTPPUT:
<err>,<protocol_error>” will be returned.

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