SIM 900 e-mail sending problem

Status
Not open for further replies.

kushal nandanwar

Full Member level 3
Joined
Jun 9, 2013
Messages
177
Helped
6
Reputation
12
Reaction score
6
Trophy points
18
Visit site
Activity points
1,258
SMSsending("AT+CREG?\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);


SMSsending("AT+SAPBR=4,1");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SAPBR=3,1,\"CONTYPE\",\"GPRS\"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SAPBR=3,1,\"APN\",\"internet\"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SAPBR=3,1,\"USER\",\ " \"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SAPBR=3,1,\"PWD\",\" \"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);




SMSsending("AT+SAPBR=1,1\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SAPBR=2,1\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+EMAILCID=1\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);


SMSsending("AT+EMAILTO=60\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SMTPSRV=\"smtp.mail.yahoo.com\",25\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SMTPAUTH=1,\"GPRS.xxxxxxx@yahoo.in\",\"xxxxxxx\"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SMTPFROM=\"gprs.xxxxxx@yahoo.in\",\"kushal\"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);


SMSsending("AT+SMTPRCPT=0,0,\"xxxxxxx@yahoo.in\",\"kushal\"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SMTPSUB=\"TEST_GPRS\"\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(250);
delay_ms(250);
delay_ms(250);
delay_ms(250);



SMSsending("AT+SMTPBODY\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(450);
dis_cmd(0x01);

SMSsending("hello");
delay_ms(450);
linefeeder(10);
delay_ms(450);
linefeeder(26);
delay_ms(450);
delay_ms(450);
delay_ms(250);
delay_ms(250);


SMSsending("AT+SMTPSEND\r\n");
delay_ms(450);
linefeeder(10);
delay_ms(450);
delay_ms(250);
delay_ms(250);


I'm trying to send e-mail using SIM-900 module at my yahoo id ,but i'm not getting any replay on yahoo . pls find my code and fixed it if there is any problem in it . I'm using idea sim for e-mailing .I successfully transmitted SMS using this module so there is no problem with hardware .
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…