I am trying to use my GE alarm system to send me a SMS (via email gateway) when a zone on my alarm is activated.
I tried using the code from
to send me a tweet, but for some reason it doesn't work every time. I only get a tweet the first time the zone is activated then it's intermittent or never get anymore tweets.
I much prefer just to send an email via SMTP. I do realize smtp server can't be using SSL, that's not a problem.
Could someone help me with some code to make this work. I am very green at Arduino and writing code is something I'm not good at.
I had the identical project at my house and had the same issues, so I thought I would take a moment and respond for others with similar issues.
I also wanted my Arduino UNO to send me text messages when something important happened in my security system. The text messages were going to be sent via an email. What I found is that there are virtually NO SMTP servers that do NOT require authentication anymore. Too much risk from ISPs with regards to SPAM BOTS. Even my own ISP (Comcast) does not allow SMTP via port 25.
Your only option is to send an email via SMTP through a secure connection either port 465 (using SSL) or 587 (TLS).
You can NOT do this straight from the Arduino. The SRAM required to authenticate via SSL or TLS is not available on the Arduino.
What I did was set up an Apache 2 web server running on my Windows 7 Professional computer. I followed this video. Make sure you download the thread safe version
I then set up PHP5 to run scripts from my Apache server. I followed the same guy's video.
I then set up an index.php file that uses PHPMailer to send my email for me. Basically I am using my server as a proxy server to send email (SMS) for me.
I ran into a few bugs and errors along the way, but each time I did a search online I found a solution. Either I was missing some .NET framework packages, or I needed to fix the PATH environment variable, but eventually over a long day I got it to work perfectly.