LTE Module Series
EC2x&EG9x&EM05 SMTP AT Commands Manual
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual 22 / 31
supported.
OK
AT+QSSLCFG="seclevel",1,0
//Configure SSL security level as 0 which
means the SSL CA certificate is not
needed.
OK
AT+QSSLCFG="sslversion",1,1
//Configure SSL version as 1 which means
TLS1.0.
OK
//Configure SMTP server.
AT+QSMTPCFG="smtpserver","smtp.163.com",25
//Set SMTP server address and port.
OK
//As the SMTP server is different, the account information will be different as well. As an example, the
following information is provided.
AT+QSMTPCFG="account","sishen664551","wq664551"
//Set username and password.
OK
AT+QSMTPCFG="sender","sishen664551","[email protected]"
//Set sender name and sender
address.
OK
3.3. Send an Email with STARTTLS
Sending an email with STARTTLS means that the normal insecure connection will be upgraded to secure
one through STARTTLS function, thus for sending the mail data. In this case, there is also a need for
SMTP server and user account configuration. The port of SMTP server depends on the mail service
provider, and it is the port 25, 465 or 587 usually.
//Configure SSL type.
AT+QSMTPCFG="ssltype",2
//Set the SSL type as 2, which means emails will be
sent over STARTTLS.
OK
AT+QSMTPCFG="sslctxid",1
//Choose SSL context 1 for SMTP.
OK
AT+QSSLCFG="ciphersuite",1, 0xffff
//Configure SSL cipher suite type as 0xffff, which means
all cipher suite types will be supported.
OK
AT+QSSLCFG="seclevel",1,0
//Configure SSL security level as 0, which means the
SSL CA cert is not needed.
OK
AT+QSSLCFG="sslversion",1,1
//Configure SSL version as 1 which means TLS1.0.