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:
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:
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