Sending an Image File With SIM-800L

Hi,
I have a SIM-800L module and I want to send an image file to my server or mail address. I tried with sending via e-mail but I got "Network Error":

OK
AT+EMAILTO=30
OK
AT+SMTPSRV="smtp.gmail.com",25
OK
AT+SMTPAUTH=1,".............@gmail.com","password"
OK
AT+SMTPFROM=".............@gmail.com","name"
OK
AT+SMTPRCPT=0,0,".............@gmail.com","name"
OK
AT+SMTPSUB="Test"
OK
AT+SMTPBODY=4
DOWNLOAD

OK
AT+SMTPSEND
OK

+SMTPSEND: 61

Firstly, I tried with my Gmail account, but some developers say that Gmail uses a secured connection and that might be the problem. Then, I swapped my account to my Hotmail account. Also, I checked if Hotmail provides SMTP protocol and found out that it does. Regardless, I only get the “SMTPSEND: 61” error. If I succeed at this sending email process, I will send emails with attachments like photos, text files, etc.

(I know that @simmoinard has asked similiar questin about 3 years ago. But there was no answer for it. Also @simmoinard if you know any solution you can share with me. I' ll be appreciated)

Does anyone have any suggestions about this error? Or do you have any example AT-commands/codes to send an image file to specified server/e-mail?

Have you set up you Gmail app password ?

Hi, @UKHeliBob
I have tried to create an "App Password." I tried to send a mail with my Gmail using the app password in the SMTPAUTH section, but it didn't work either. What should I do now?

AT+EMAILCID=1
OK
AT+EMAILTO=30
OK
AT+SMTPSRV="smtp.gmail.com",25
OK
AT+SMTPAUTH=1,".................@gmail.com","theAppPassword"
OK
AT+SMTPFROM=".................@gmail.com","myname"
OK
AT+SMTPRCPT=0,0,"..................com","reciever name"
OK
AT+SMTPSUB="Test"
OK
AT+SMTPBODY=4
DOWNLOAD

OK
AT+SMTPSEND
OK

+SMTPSEND: 61

Any assistance you can provide would be greatly appreciated.

I am afraid that I can offer little or no more help as I don't know much about Gmail or the SIM-800

1 Like

Okay, thank you for your attention anyway.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.