Email not able to send

Hi,

We are trying to send email using Simple Mail Transfer Protocol (SMTP), but don’t able to send it.

We are using EC20 module.

I have attached below log and error message.

Error:

31-08-2024 09:42:03.65 [RX] - <CR><LF>
+QSMTPPUT: 654,535<CR><LF>
AT+QSMTPPUT=300<CR>
<CR><LF>
OK<CR><LF>

Log:

AT+QSIMSTAT=1<CR><LF>
<CR><LF>
OK<CR><LF>
AT+CREG?<CR><LF>
<CR><LF>
+CREG: 0,1<CR><LF>
<CR><LF>
OK<CR><LF>
AT+QSSLCFG="sslversion",1,1<CR>
<CR><LF>
OK<CR><LF>
AT+QSSLCFG="seclevel",1,0<CR>
<CR><LF>
OK<CR><LF>
AT+QSSLCFG="ciphersuite",1,0xFFFF<CR>
<CR><LF>
OK<CR><LF>
AT+QSMTPCFG="ssltype",2<CR>
<CR><LF>
OK<CR><LF>

31-08-2024 09:41:43.41 [RX] - AT+QSMTPCFG="sslctxid",1<CR>
<CR><LF>
OK<CR><LF>

31-08-2024 09:41:43.98 [RX] - AT+QSMTPCFG="account","sagar.dhande07","S@gar123"<CR>
          <CR><LF>
OK<CR><LF>
AT+QSMTPCFG="sender","SAGAR","sagar.dhande07@hotmail.com"<CR>
                      airtelgprs.com<NUL>     <CR><LF>
OK<CR><LF>
AT+QSMTPCFG="smtpserver","smtp.gmail.com",587<CR>
<CR><LF>
OK<CR><LF>
AT+QSMTPSUB=0,"MODBUS"<CR>
<CR><LF>
OK<CR><LF>
AT+CSQ<CR><LF>
<CR><LF>
+CSQ: 25,99<CR><LF>
<CR><LF>
OK<CR><LF>
AT+CMGF=1<CR><LF>
<CR><LF>
OK<CR><LF>
AT+CSCS="IRA"<CR><LF>
<CR><LF>
OK<CR><LF>
AT+CCLK?<CR><LF>
<CR><LF>
+CCLK: "24/08/31,09:41:46+22"<CR><LF>
<CR><LF>
OK<CR><LF>
AT+CMGR=0<CR><LF>
<CR><LF>
OK<CR><LF>

31-08-2024 09:41:47.20 [RX] - AT+CMGS="+919765737819"<CR><LF>
<CR><LF>
>S ET01 :<LF>
1 - 1         <LF>
2 - 0         <LF>
3 - 0         <LF>
4 - 0         <LF>
5 - 0         <LF>
6 - 0         <LF>
7 - 0         <LF>
8 - 0         <LF>
9 - 0         <LF>
10- 0         <LF>
<SUB><CR><LF>
+CMGS: 217<CR><LF>
<CR><LF>
OK<CR><LF>

31-08-2024 09:41:53.78 [RX] - AT+CMGF=1<CR><LF>
<CR><LF>
OK<CR><LF>
AT+QICSGP=1,1,"INTERNET","","",1<CR>
  <CR><LF>
OK<CR><LF>
AT+CSCS="IRA"<CR><LF>
<CR><LF>
OK<CR><LF>
AT+QSMTPDST=1,1,"sanrnd1@santelequip.com"<CR>
<CR><LF>
OK<CR><LF>
AT+QSMTPBODY=0,158,120<CR>
<CR><LF>
CONNECT<CR><LF>
SET01 :<LF>
1 - 1         <LF>
2 - 0         <LF>
3 - 0         <LF>
4 - 0         <LF>
5 - 0         <LF>
6 - 0         <LF>
7 - 0         <LF>
8 - 0         <LF>
9 - 0         <LF>
10- 0         <LF><CR>
<LF>
+QSMTPBODY: 158<CR><LF>
<CR><LF>
OK<CR><LF>

31-08-2024 09:42:00.16 [RX] - AT+QSMTPPUT=300<CR>
<CR><LF>
OK<CR><LF>

31-08-2024 09:42:03.65 [RX] - <CR><LF>
+QSMTPPUT: 654,535<CR><LF>
AT+QSMTPPUT=300<CR>
<CR><LF>
OK<CR><LF>

Hi everyone,

Please help me to solve the above issue.

Hi @sanrnd1
Have you specified the path for the certificate and key?

Could you please share the sending the email using STARTTLS Log with certificate?

Please forward any document/procedure sending email using EC20 module with STARTTLS.

I follow the steps mentioned in Quectel_EC20_SMTP_AT_Commands_Manual.pdf

(post deleted by author)

I have reviewed your operation steps and found two issues:

  1. You only configured the PDP context and did not activate it.
  2. Please check if the account name and password are correct
    image

The previous log is fine.

Starting in Fall of 2024 many email provider services accounts will no longer support less secure apps, third-party apps or devices that ask you to sign in to your email Account using only your username and password.

I have tried using an Outlook account, as well as Gmail and Yahoo.

We need to enable modern authentication, such as OAuth2 on EC20.

Could you please provide an example of modern authentication?

Configure the paths of these security certificates before sending the email and try again.