User Tools

Site Tools


Sending E-Mails with the Raspberry PI

An easy way to send an e-mail from the Raspberry PI command line is the tool sendEmail.

Execute this command to install sendEmail:

sudo apt-get install sendemail

This command will send a simple e-mail with subject and message:

sudo sendemail -f -t -u "Subject" -m "Message" -s -xu smtp-user -xp smtp-password

This command will send an e-mail with file attachment:

sudo sendemail -f -t -u "Subject" -m "Message" -s -xu smtp-user -xp smtp-password -a /path/to/my/file

As always the help is appears with this command:

sendemail -h

sendemail.txt · Last modified: 09.10.2013 19:24 by derk