OK, best way (and this really is an IoT question if you look at it) is to look at the most efficient (ie. fastest, least labor intensive) way of doing it. BBB's are small, so please don't try to install an SMTP server and stuff on it when you can do this.
The mutt and the HTTP API approach are great because they transfer the work off the BBB, basically a "client" approach, its called. What I would do is use CURL to pass via an HTTP POST to your virtual server (ie. your web site) to a really basic PHP script that did the actual mailing. Let me justify my position on this. All the PHP script does is invoke the PHP function mail(to,subject,message) stuffing the data in the POST into this one function (like 10 lines of code maximum). This transfers the work load onto their sys admin saving you a lot of trouble. On your BBB, access CURL and just build a basic url-encoded GET or POST (POST is preferable) header and execute. Build the full email on the BBB and just pass it to your virtual server script. CURL Execute() allows you to even send back a fail/success code that you can verify that it was sent. Interesting problem. :) On Friday, August 19, 2016 at 8:01:44 AM UTC-7, [email protected] wrote: > > Hello all, > > I am trying to do a (presumably) very simple task. > I want my Beaglebone Black (BBB) to send me an email when a button wired > to it is pushed. > > A) I don't know for sure if I have Angstrom or Debian (or otherwise?) and > I don't know how to find out > B) I'm aware of email services include msmtp, ssmtp, exim4, etc from my > current efforts on the topic, but I don't know how to download, install, > and set them up (or even which one I should use) > > Background info: I'm currently using Putty as my terminal to talk to the > BBB. I've found that I need to connect an ethernet cable directly to the > BBB (instead of piggybacking via USB tot he laptop's wireless) to actually > get network capability. > > I've been working on this for the past few days, but this is my first time > getting my hands dirty with a BBB (and Linux, operating systems in > general), so most of the tutorials I've been reading aren't very helpful > because they assume I know things that I don't (they say "install this > package"....but how?). If we could piece together a sort of step-by-step > for this whole process, that would vastly help both myself and anyone else > trying to do what I'm doing. Thanks much! > > The main tutorial I'm following: > http://inspire.logicsupply.com/2014/04/alarm1-send-email.html > > Some other links I've been using: > > http://dumb-looks-free.blogspot.com/2014/06/beaglebone-black-bbb-send-mail-via-gmail.html > > http://tombuntu.com/index.php/2008/10/21/sending-email-from-your-system-with-ssmtp/ > http://nekhbet.com/ssmtp_gmail.shtml > http://linux.die.net/man/5/ssmtp.conf > > http://www.absolutelytech.com/2010/07/17/howto-configure-msmtp-to-work-with-gmail-on-linux/ > > http://knek-tek.me/index.php/2015/05/28/how-to-send-email-from-the-beaglebone-black-with-a-gmail-account/ > https://wiki.openwrt.org/doc/howto/smtp.client > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/26a6eb1d-c8e7-402f-b71e-c4035e4718f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
