LTE Module Series
EC2x&EG9x&EM05 SMTP AT Commands Manual
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual 5 / 31
1
Introduction
Quectel EC2x&EG9x&EM05 modules provide SMTP application interface for sending emails. This
document is a reference guide to all the AT commands defined for SMTP.
This document is applicable to following Quectel modules:
EC2x (including EC25, EC21, EC20 R2.0 and EC20 R2.1)
EG9x (including EG91 and EG95)
EM05
1.1. Introduction about SSL Type
There are three kinds of connections between SMTP client and SMTP server:
Without SSL
SSL
STARTTLS
Some SMTP servers do not support connection without SSL, while some can support all of them.
Customers can choose one kind according to the mail service provider.
These three kinds of connections can be set by <ssltype> parameter in AT+QSMTPCFG=
"
ssltype
"
.
1. If
<ssltype> is 0, it means “without SSL”. In this case, SSL function will not be used, and emails are
sent with insecure connection. The port of SMTP server depends on mail service provider, and it is
the port 25 usually.
2.
If <ssltype> is 1, it means “SSL”. In this case, emails are sent with SSL/TLS encrypted SMTP. The
port of SMTP server depends on mail service provider, and it is the port 465 or 587 usually.
3.
If <ssltype> is 2, it means “STARTTLS”. In this case, the normal insecure connection can be
upgraded to secure connection through STARTTLS function, for sending the mail data. The port of
SMTP server depends on mail service provider, and it is the port 25, 465 or 587 usually.