Saturday, 4 May 2013

Sending an E-mail from the Raspberry Pi


When the Raspberry Pi is used in monitoring applications it can be useful if it can alert you when a particular event occurs. For example, when a sensor indicates that the temperature has fallen below a certain level, the Raspberry Pi can alert you by e-mail.
To send an alert e-mail from the Raspberry Pi is strightforward and can be done in 8 easy steps.

Step 1: Use apt-get update to make sure you are upto date.

Step 2: Use apt-get install ssmtp 

Step 3: Edit the ssmtp config file

Step 4: Send test e-mail from command line

Step 5: Create bash file

Step 6: Make bash file executable

Step 7: Let bash file be executed like any other command

Step 8: Enter into Python script     

No comments:

Post a Comment