LTE Module Series
EC2x&EG9x&EM05 SMTP AT Commands Manual
EC2x&EG9x&EM05_SMTP_AT_Commands_Manual 10 / 31
Parameter
<username>
String type. The user name for authentication. The maximum size of the
parameter is 50 bytes.
<password>
String type. The password for authentication. The maximum size of the
parameter is 50 bytes.
<sender_email>
String type. The email address of the sender. The maximum size of the parameter
is 50 bytes.
<sender_name>
String type. T
he sender’s name that will be shown when the recipients receiving
the email. The maximum size of the parameter is 50 bytes.
<srvaddr>
String type. The IP address or domain name of the SMTP server. The maximum
size of the parameter is 50 bytes.
<srvport>
Integer type. The port of the SMTP server. The default value is 25. It may be
different depending on different SMTP server. For details, please
query
the
corresponding mail service provider.
<contextID>
Integer type. The PDP context ID. The range is 1-16, and the default value is 1. It
should be activated by AT+QIACT before sending an email. For details, please
refer to
Quectel_EC2x&EG9x&EM05_TCP(IP)_AT_Commands_Manual
.
<sslctxID>
Integer type. SSL context ID used for SMTP. The range is 0-5, and the default
value is 1. Customers should configure the SSL parameters by AT+QSSLCFG.
For details, please refer to
Quectel_EC2x&EG9x&EM05_SSL_AT_Commands
_Manual
.
<ssltype>
Integer type. Configure the SSL type. Please choose the SSL type according to
the mail service provider, since some SMTP servers do not support sending email
without SSL.
0
Without SSL
1
SSL
2
STARTTLS
<err>
Integer type. The error code of the operation. Please refer to
Chapter 5
.
2.2. AT+QSMTPDST Add or Delete Recipients
AT+QSMTPDST=1 can be used to add recipients. The maximum number of recipients is 20, including CC
recipients and BCC recipients. AT+QSMTPDST=0 can be used to delete all recipients.
AT+QSMTPDST
Add or Delete Recipients
Test Command
AT+QSMTPDST=?
Response
+QSMTPDST: (0,1),(1-3),<emailaddr>
OK
Read Command
AT+QSMTPDST?
Response
[+QSMTPDST: <type>,<emailaddr><CR><LF>]