LTE  Module  Series 
 EC2x&EG9x&EM05  SMTP  AT  Commands  Manual 
 
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual                                                                   19 / 31 
   
 
 
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 //Configure PDP context 1. APN is “UNINET”  for 
China Unicom. 
OK 
AT+QIACT=1                    //Activate PDP context 1. 
OK     //Activated successfully. 
AT+QIACT?                     //Query the state of PDP context. 
+QIACT: 1,1,1,"10.7.157.1" 
 
OK 
AT+QSMTPCFG="contextid",1                                        //Set the PDP context ID as 1. The PDP context 
ID must be activated first. 
OK 
//Step 2: Configure SMTP server and user account. 
AT+QSMTPCFG="ssltype",0                                            //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. 
AT+QSMTPCFG="smtpserver","smtp.163.com",25 //Set the IP address or domain name and port of 
SMTP server. The port of SMTP server depends 
on mail service provider. 
OK 
AT+QSMTPCFG="account","sishen664551","wq664551" //Set username and password.   
OK 
AT+QSMTPCFG="sender","sishen664551","sishen664551@163.com" //Set sender name and sender 
address.  The  sender  name 
will  be  shown  when  the 
email is received.   
OK