But what is "actually" needed is a function to send Email to ANY available; email address, pager, phone number, or other - an Open SMTP MTA.
If this sounds interesting: check it out on my blog, at: http://wa0uwh.blogspot.com/2015/12/email-from-raspberry-pi-or-esp8266.html
i currently use this function to send information to any email address directly from the Esp8266.
Eldon - WA0UWH