Examples; Send An Email Without Ssl - Quectel EC2 Series Command Manual

Lte module, smtp at commands
Hide thumbs Also See for EC2 Series:
Table of Contents

Advertisement

3

Examples

3.1. Send an Email without SSL

Sending an email without SSL means that SSL function will not be used, and the email will be sent with
insecure connection. For example:
//Step 1: Configure and activate the PDP context.
AT+QICSGP=1,1,"UNINET","","",1
OK
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,"10.7.157.1"
OK
AT+QSMTPCFG="contextid",1
OK
//Step 2: Configure SMTP server and user account.
AT+QSMTPCFG="ssltype",0
AT+QSMTPCFG="smtpserver","smtp.163.com",25
OK
AT+QSMTPCFG="account","sishen664551","wq664551"
OK
AT+QSMTPCFG="sender","sishen664551","sishen664551@163.com"
OK
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual
EC2x&EG9x&EM05 SMTP AT Commands Manual
//Configure PDP context 1. APN is "UNINET" for
China Unicom.
//Activate PDP context 1.
//Activated successfully.
//Query the state of PDP context.
//Set the PDP context ID as 1. The PDP context
ID must be activated first.
//Set the SSL type as without SSL for SMTP. In
this case, SSL function will not be used, and
emails will be sent with insecure connection.
//Set the IP address or domain name and port of
SMTP server. The port of SMTP server depends
on mail service provider.
//Set username and password.
LTE Module Series
//Set sender name and sender
address. The sender name
will be shown when the
email is received.
19 / 31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Eg9 seriesEm05

Table of Contents