Author Topic: SIM900A module email send  (Read 3354 times)

0 Members and 1 Guest are viewing this topic.

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 487
SIM900A module email send
« on: October 21, 2015, 03:25:25 pm »
1. I am using SIM900A to send email. My code sequence is below.
2. Baud is 9600 & internet on SIM works ok.
3. All commands sequence ok response from SIM900A, but when I send the email I got error "SMTPSEND: 67" or "SMTPSEND: 61", correspond to authentication failed or network error.
4. Below is code:


->AT
<-OK
 
->AT+SAPBR=3,1,"CONTYPE","GPRS"
<-OK
 
->AT+SAPBR=3,1,"APN","TATA.DOCOMO.INTERNET"
<-OK
 
->AT+SAPBR=3,1,"USER",""
<-OK
 
->AT+SAPBR=3,1,"PWD",""
<-OK
 
->AT+SAPBR=1,1
<-OK
 
->AT+SAPBR=2,1
<- +SAPBR: 1,1,"xxx.xxx.xxx.xxx"   //IP
<-OK
 
->AT+EMAILCID=1
<-OK
 
->AT+EMAILTO=30
<-OK
 
->AT+EMAILSSL=1
<-OK
 
->AT+SMTPSRV="smtp.mail.yahoo.com",465
<-OK
 
->AT+SMTPAUTH=1,"sender_id_xxxx@yahoo.in","password"    //sender email username & password
OK
 
->at+smtpfrom="sender_id_xxxx@yahoo.in","name"          //sender email username & id
<-OK
 
->at+smtprcpt=0,0,"rx_id_xxxx@gmail.com","name"         //rx id & his name
<-OK
 
->at+smtpsub="test"
<-OK
 
->AT+SMTPBODY
<- > THIS IS TEST (ctrl+z)
<-OK
 
->AT+SMTPSEND
<-OK
 
<- +SMTPSEND: 61
 

Offline krish2487

  • Frequent Contributor
  • **
  • Posts: 500
  • Country: dk
Re: SIM900A module email send
« Reply #1 on: October 21, 2015, 07:00:21 pm »
Again,
Googling for the error code you have pasted leads me to this
https://forum.arduino.cc/index.php?topic=354657.0
Please stick one or two forums where you feel you can identify with and don't spam across google. It is not good net etiquette.

Please provide details - hardware, schematics, bring up procedure, micro, compiler, your complete code and error combo.
The more sensible information you provide, the better chance folks here have of helping you.
Help us, help you.


I am an indian myself, and I can sympathise with the overwhelming blockade you feel you are having. But please, this is not a place where others will
hand hold you to the point of spoon-feeding you. You have to show what you have done to even illicit a response. Presenting a part of the puzzle and expecting a complete response, magically, is not realistic.
I hope I have not come across as rude, I apologise if I do.
If god made us in his image,
and we are this stupid
then....
 

Offline picandmix

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: gb
Re: SIM900A module email send
« Reply #2 on: October 21, 2015, 08:23:12 pm »
The Sim900A is said to be locked to certain far east countries, are you in a suitable country ?

If not you have to reprogram its firmware with the Sim900 version.

This link lists the areas covered http://www.blog.zapro.dk/?p=368
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf