Writing the Web Mailer

Libraries for sending email directly from the Arduino abound. But these all rely on a stand-alone, dedicated email server providing the mail gateway. So even though the mailer code can be compiled into the Arduino sketch, the solution still relies on an intermediary to send messages from the Arduino to the email inbox of the intended recipient(s).

If you have access to an SMTP mail server that you can connect to for outbound message transmission, check out Maik Schmidt’s Arduino: A Quick Start Guide [Sch11]. His book supplies the necessary code and walkthrough on how to make this work. If you don’t have access to a dedicated SMTP gateway, we can use an Internet web hosting service that supports sending email from a PHP ...

Get Programming Your Home now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.