On Fri, Aug 19, 2016 at 11:01 AM, <[email protected]> wrote:
>
> I want my Beaglebone Black (BBB) to send me an email when a button wired
> to it is pushed.
>


> 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)
>

Don't worry about those things---you don't need them. Instead, you need to
figure out how to connect to the email infrastructure that would transmit
your message to the final destination. Getting the email out of your system
is easy---you could literally telnet to port 25 on the mail server that is
accessible to you, and type the commands:


*helo volkalert*

*mail from: [email protected] <[email protected]>*

*rcpt to: [email protected] <[email protected]>*

*data*


*button pressed.*
*quit*

The trick is to find the mail server that will accept your connection, and
what domains it allows for the to/from data. You have to ask your ISP for
that. Once you know the answer, you could just open the network connection
and issue the command sequence above, or use one of SMTP libraries in the
language you're writing your app in, or simply spawn the 'mail  -r
[email protected] [email protected]'  command and pipe your message to
its stdin.

-- 
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/CAC%3D1GgF3BJ%3D39TxgR%2BzCP67R2Lw4HOTLurYXcdeb_LcKWsO%3DWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to