andres90125
Member level 2
- Joined
- Jul 21, 2011
- Messages
- 44
- Helped
- 8
- Reputation
- 16
- Reaction score
- 7
- Trophy points
- 1,288
- Location
- Santo André, Brazil
- Activity points
- 1,626
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 void Bearer_profile (void) { Server_Actv = 1; GSM("AT+SAPBR=2,1"); // test connection ? _delay_ms(400); if(!APMSTS) //if not connected . connect now! { GSM("AT+CREG?"); _delay_ms(50); GSM("AT+SAPBR=4,1"); _delay_ms(400); GSM("AT+SAPBR=3,1,\"CONTYPE\",\"GPRS\""); _delay_ms(5); GSM("AT+SAPBR=3,1,\"APN\",\"claro.com.br\""); _delay_ms(5); GSM("AT+SAPBR=3,1,\"USER\",\"claro\""); _delay_ms(5); GSM("AT+SAPBR=3,1,\"PWD\",\"claro\""); _delay_ms(5); GSM("AT+SAPBR=1,1"); _delay_ms(4500); } GSM("AT+SAPBR=2,1"); _delay_ms(2000); Server_Actv = 0; } void send_email_via_yahoo (void) { Server_Actv = 1; GSM("AT+EMAILCID=1"); _delay_ms(10); GSM("AT+EMAILTO= time_out"); //time out 20...120 sec //resp ok _delay_ms(10); GSM("AT+SMTPSRV=\"smtp.mail.yahoo.com.ar\",587"); //resp ok _delay_ms(10); // smtp server port GSM("AT+SMTPAUTH=1,\"GPRS.123456789@yahoo.com.ar\",\"*********\""); //resp ok _delay_ms(10); // sender mail key GSM("AT+SMTPFROM=\"gprs.123456789@yahoo.com.ar\",\"Andres-GPRS\""); //resp ok _delay_ms(10); // sender GSM("AT+SMTPRCPT=0,0,\"abcdefghijk@gmail.com\",\"andres\""); //resp ok _delay_ms(100); // GSM("AT+SMTPSUB=\"TEST_GPRS\""); //resp ok _delay_ms(10); P_ROMT = 0; USART0_TX ("AT+SMTPBODY"); //resp ok GSM("AT+SMTPBODY"); while(!P_ROMT){_delay_ms(50);} // sistem promp .... ? >> GSM("CUERPO DEL E-MAIL. enviado por GPRS modem a 17 min de intervalo "); GSM(" "); GSM(" "); _delay_ms(10); GSM_BYTE(0x1A); // transact end _delay_ms(10); SMTPSEND_OK = 0; GSM("AT+SMTPSEND"); // send this while(!SMTPSEND_OK){ W_delay(time_out);}; Server_Actv = 0; }
1137B11SIM900M64 ST not support E-mail.
Need a special version of the firmware.
1137B10SIM900M64_ST_Email_TEST_20111103 - test only version.
please share the firmware here..
i have made a collection of firmwares and appnotes etc here http://teeblog.blog.com/archives/888/
hope you would add the firmwares u have here!
Your link doesn't work anymore. Please send the new one.
Thanks.
yeah right, here you go
works great if SMTP, now the problem I see is not much more, in some cases difficult is that you're not connecting to servers with SSL encryption,
so in the example above post you will see that I'm using YAHOO, which works perfect gate 25
Andrés
Attached Files
0x3700001000000115.rar (1.40 MB)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?