Sending e-mail from ESP8266 often requires a lot of setting up only to have your e-mail provider change something and prevent your IOT device from sending e-mail. Most e-mail providers require use of ssl which can be too much for low-end devices like ESP8266.
Since most e-mails I needed to send from such devices are just plain text notifications, a simple service is sufficient. I wrote a "Quick Mail" service for this purpose.
The solution is free for anyone to use and the source code is available on Github, so feel free to host your own solution.
Sending e-mail is now reduced to a simple HTTP request, either GET or POST, your choice.
To start, you will need to signup by submitting your e-mail. A notification e-mail will be sent to you and to me,
so you will need to wait for me to approve your account.
In the e-mail, you will receive your token, which you can use to login and send e-mails. Do not worry if you lose it,
there is a link on the login page where you can retrieve it.
Since sending an e-mail is so simple, to prevent possible spam abuse,
I added a CAPTCHA to some of the pages and limited maximum number of recipients to just the first 10.
If you need to reset this list, there is a page to do so, but after the history list is populated with 10 recipients,
those are the only recipients authorized to send e-mail to.
To send an e-mail using an HTTP GET request, you can use an URL like:
http://quickmail.ujagaga.in.rs/send?token=your_token&msg=Url_safe_text_message&to=recipient_emailThe "to" parameter can contain one recipient e-mail or a comma separated list of e-mails.
I hope you find this service helpful.