SIM900A module email send

Discussion in 'Embedded Systems and Microcontrollers' started by Vindhyachal Takniki, Oct 21, 2015.

  1. Vindhyachal Takniki

    Thread Starter Member

    Nov 3, 2014
    349
    6
    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:

    Code (Text):
    1. ->AT
    2. <-OK
    3.  
    4. ->AT+SAPBR=3,1,"CONTYPE","GPRS"
    5. <-OK
    6.  
    7. ->AT+SAPBR=3,1,"APN","TATA.DOCOMO.INTERNET"
    8. <-OK
    9.  
    10. ->AT+SAPBR=3,1,"USER",""
    11. <-OK
    12.  
    13. ->AT+SAPBR=3,1,"PWD",""
    14. <-OK
    15.  
    16. ->AT+SAPBR=1,1
    17. <-OK
    18.  
    19. ->AT+SAPBR=2,1
    20. <- +SAPBR: 1,1,"xxx.xxx.xxx.xxx"   //IP
    21. <-OK
    22.  
    23. ->AT+EMAILCID=1
    24. <-OK
    25.  
    26. ->AT+EMAILTO=30
    27. <-OK
    28.  
    29. ->AT+EMAILSSL=1
    30. <-OK
    31.  
    32. ->AT+SMTPSRV="smtp.mail.yahoo.com",465
    33. <-OK
    34.  
    35. ->AT+SMTPAUTH=1,"sender_id_xxxx@yahoo.in","password"    //sender email username & password
    36. OK
    37.  
    38. ->at+smtpfrom="sender_id_xxxx@yahoo.in","name"          //sender email username & id
    39. <-OK
    40.  
    41. ->at+smtprcpt=0,0,"rx_id_xxxx@gmail.com","name"         //rx id & his name
    42. <-OK
    43.  
    44. ->at+smtpsub="test"
    45. <-OK
    46.  
    47. ->AT+SMTPBODY
    48. <- > THIS IS TEST (ctrl+z)
    49. <-OK
    50.  
    51. ->AT+SMTPSEND
    52. <-OK
    53.  
    54. <- +SMTPSEND: 61
    55.  
     
Loading...