User Tools

Site Tools


sendemail

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 mail@from-email-address.de -t mail@to-email-address.de -u "Subject" -m "Message" -s mail.my-smpt-server.de:25 -xu smtp-user -xp smtp-password

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

sudo sendemail -f mail@from-email-address.de -t mail@to-email-address.de -u "Subject" -m "Message" -s mail.my-smpt-server.de:25 -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