Send An Email With Starttls - Quectel AG35 SMTP At Command Manual

Lte module
Table of Contents

Advertisement

OK
AT+QSSLCFG="seclevel",1,0
OK
AT+QSSLCFG="sslversion",1,1
OK
//Configure SMTP server.
AT+QSMTPCFG="smtpserver","smtp.163.com",25
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"
OK
AT+QSMTPCFG="sender","sishen664551","sishen664551@163.com"
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
OK
AT+QSMTPCFG="sslctxid",1
OK
AT+QSSLCFG="ciphersuite",1, 0xffff
OK
AT+QSSLCFG="seclevel",1,0
OK
AT+QSSLCFG="sslversion",1,1
OK
AG35_SMTP_AT_Commands_Manual
AG35 SMTP AT Commands Manual
//Configure SSL security level as 0 which
means the SSL CA certificate is not
needed.
//Configure SSL version as 1 which means
TLS1.0.
//Set SMTP server address and port.
//Set the SSL type as 2, which means emails will be
sent over STARTTLS.
//Choose SSL context 1 for SMTP.
//Configure SSL cipher suite type as 0xffff, which means
all cipher suite types will be supported.
//Configure SSL security level as 0, which means the
SSL CA cert is not needed.
//Configure SSL version as 1 which means TLS1.0.
Confidential / Released
LTE Module Series
//Set username and password.
//Set sender name and sender
address.
22 / 30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents