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
If you google "how to linux email command line" You'll see you do not need
anything special to send emails from Linux . . .
On Mon, Sep 19, 2016 at 10:37 PM, Hồng Quân Nguyễn
wrote:
>
> I use mailgun.com to send email. It provides HTTP API.
>
> Here is a part of my code
I use mailgun.com to send email. It provides HTTP API.
Here is a part of my code (I use Python and "requests" library to do HTTP
request):
message = {
'from': 'nore...@farm.agriconnect.vn',
'to': addr,
'subject': _('Data exported for %(cond_type)s') % (
There's an email example in the bone101 examples already on the current
Bone images. Try:
bone$ *cd /usr/share/bone101/examples/cookbook/06-iot * (For newest images)
If that doesn't work try
bone$ c*d /var/lib/cloud9/examples/cookbook/06-iot*
If that doesn't work you need to update your image.
IMHO the simplest way to do it is setup a free Gmail account and enable
imap/pop support on it. Then install mutt on your BBB and configure it to
send the email through Gmail. Then on the BBB do something like
system("echo 'No Heartbeat:' `/bin/date` | /usr/bin/mutt -s ' Problem!' --