Sending Email with Python SSMTP

To send email from a python script on the Raspberry Pi follow the below guide.

Prerequisites:

[cc]sudo apt-get install ssmtp mailutils
[/cc]

Note, on my Raspberry Pi I needed to run, “sudo apt-get update –fix-mising” first.