Dear Sirs, good day to you all.
I have made a project 10 years ago using Motorola G24 modules. They where larger, with many connections but for this purpose very similar in general. But, at that time, the security policies of the providers were lighter. Today I am having trouble to send my first reporting email.
Some days ago the opportunity of a similar data reporting project arrived and I bought a SIM800L.
I could quickly setup, send and receive SMS and configure NTP. I downloaded all the available literature from SIMCOM’s site. I am not a GSM/GPRS expert myself. I am just an analog/ digital hardware and software designer. I am sorry for my inexperience with SIM800.
I applied the example listed in the SIMCOM documentation on sending email: “SIM800 Series Email Application Note V1.02.pdf” and “SIM800 Series SSL Application Note V1.05.pdf”
I have regular working email accounts with the 3 providers. Please accept the following sequence listing of the AT commands used, where there are not syntax or other errors reported by the SIM800L module. Each command is accepted and confirmed, except for the last one, when sending the email message. I am receiving this kind of errors:
+SMTPSEND: 65 // SMTP server response error
+SMTPSEND: 67 // Authentication failed. SMTP user name or password may be not right
It seems that there is some problem with authentication or the protocols envolved in such process. I eliminated the “OK” replies from the module to make more readable. Please be so kind to indicate where my error is? Thank you in advance.
AT+SAPBR=3,1,”APN”,”CMNET” // Configure bearer profile 1
AT+SAPBR=1,1 // To open a GPRS context.
AT+EMAILCID=1 //Set parameters of Email
AT+EMAILTO=30 OK //Set timeout
AT+EMAILSSL=1 // use SSL for specified port
smtp.live.com”,587 //Set SMTP server address and port
","mypass" // user & pass AT+SMTPFROM="email@example.com",“Bob” // FROM:
AT+SMTPRCPT=0,0,“firstname.lastname@example.org``”,“Robert” // TO:
AT+SMTPSUB=“TEST MSG SIM800” // SUBJ
AT+SMTPBODY=13 // here goes a 13 char msg
DOWNLOAD // SIM800 prompts for sending text
This is a test // email text …
AT+SMTPSEND // send it
+SMTPSEND: 67 // email was not send