YMMV

* your mileage may vary

Sunday, 1 June 2014

Beaglebone Black (BBB) Send Mail Via Gmail

Steps to set up mail sending via Gmail.  A Gmail account is required.
  • sudo apt-get install ssmtp mailutils mpack
  • sudo nano /etc/ssmtp/ssmtp.conf
Change the lines:

FromLineOverride=YES
mailhub=smtp.gmail.com:587
AuthUser=emailaccount@gmail.com
AuthPass=yourpassword
useSTARTTLS=YES


Send an email from the command line:
  • tail some-logfile.log | mail -s "BBB Log File" -a "From: BBB <emailaccount@gmail.com>" destination@where-ever.com



No comments:

Post a Comment