LTE Module Series
AG35 SMTP AT Commands Manual
AG35_SMTP_AT_Commands_Manual Confidential / Released 6 / 30
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_AG35_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_AG35_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_AG35_FILE_Application_Note.
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.
Step 5: Clear the email content.
AT+QSMTPCLR will clear the email content configured in Step 3. The attached files should be
deleted by AT+QFDEL. For more details of these commands, please refer to
Quectel_AG35_FILE_Application_Note. Then repeat Step 3 and 4. If the SMTP server
information and user information need to be changed, then Step 2 to Step 4 should be repeated.
If emails have not been sent for a long time, such as 30 minutes or even longer, then the PDP
context should be deactivated by AT+QIDEACT=<contextID>. For more details, please refer to
Quectel_AG35_TCP(IP)_AT_Commands_Manual.