Emailing from the Command Line
Although email is an important service, only a few people know how it actually works behind the scenes. To send emails from an Arduino, we could choose the easy path and use a PC as an email relay, as we did in Tweeting Messages with Processing, to Tweet messages. As real hackers, we’ll follow a more sophisticated path and implement a subset of the Simple Mail Transfer Protocol (SMTP).[115]
SMTP is a typical Internet protocol. It uses only text, and it is mainly line-based; that is, you exchange information line by line. A typical email consists of only a few attributes: a sender, a receiver, a subject, and a message body. To transmit an email, you have to send a request to an SMTP server. The request has to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access