hi guys,
I am using the GSM A6 module with Arduino mega, i couldn't find any source that able to send a email with this device (GSM A6)
i try to use the programs that works with Sim900, but they didn't work,
also i tried to connect with (smtp.gmail.com) using the at command function (AT+CIPSTART="TCP","smtp.gmail.com","465") it connects well but i don't know how can i feed the username and password of the STMP User and how to select the email that need to send from and need to send to the data, subject and body of the email.
do you have any idea about that? please advise me.
thank you
anyone can help me here ???
A couple of years ago, I posted a chunk of code for another enquiry to send email...
If you search around, it was for a SIM 5320 chip, but should work for you.
This is the gist of it...
AT+ CGDCONT=1, "IP", "myAPN", "0.0.0.0" >>
AT+CGATT=1 OK
<takes ~5 secs>
AT+CGACT=1, 1 >>
+CGPADDR: 1,"10.146.90.214" << == DHCP assigned from carrier
AT+CSMTPSSRV="smtp.optusnet.com.au", 25, 1
AT+CSMTPSAUTH=0
AT+CSMTPSFROM="sendername@optusnet.com.au"
AT+CSMTPSRCPT=0,0,"recipient@destination.net", "Test Report"
AT+CSMTPSSUB=38
My message [Test] Status Report
AT+CSMTPSBODY={length of following text}
First line of message 160830
Some more
body
on multiple
lines
Tu 15:44
SENDING...
<takes ~5 secs>
+CSMTPSSEND: 0
AT+CGACT=0, 1 OK
AT+CGATT=0 OK
AT+CGDCONT=1 OK