MarcoMartines / GSM-GPRS-GPS-Shield

GSM/GPRS & GPS Shield Library for modules using SIM900/SIM908
GNU General Public License v2.0
207 stars 151 forks source link

SMTP class for GSMSHIELD #39

Open mgaman opened 8 years ago

mgaman commented 8 years ago

The SIM900 has more capabilities than normally advertised, namely SMTP and HTTPS support. To check whether your version of SIM900 supports SMTP, attach a terminal emulator and type in AT_EMAILCID=? If the reply ends in OK, you're supported. This is a work in progress. Currently ASCII mode is supported for Subject and Body. UTF-8 mode is supported but never tested. Mixing SSL and login names/ passwords with non-alphanumeric characters causes the SIM900 to reset. Similarily non-alphanumeric characters in https URLs exhibits similar behaviour. I need to fix that so I can develop a Telegram class. Your testing and feedback would be appreciated.