/rpi-sendthis

Email sender on Docker for Raspberry Pi

Primary LanguageDockerfile

Mail sender for Raspberry Pi on Docker

Docker for Raspberry Pi with mail sender.

But what does it do?

When you run the container, it looks the ssmtp.conf and the variables. Then send the mail.

How To run

Edit ssmtp.conf with your parameters and mount it. Then:

Send message

docker run  --rm \ 
-v `pwd`/ssmtp.conf:/etc/ssmtp/ssmtp.conf \ 
-e MESSAGE=Text \ 
-e SUBJECT=Hello \ 
-e EMAIL=example@example.com \ 
vitharme/rpi-sendthis

Send file

docker run  --rm \ 
-v `pwd`/ssmtp.conf:/etc/ssmtp/ssmtp.conf \ 
-v /PATH_WITH_FILE/FILE:/FILE \ 
-e MESSAGE=Text \ 
-e SUBJECT=Hello \ 
-e EMAIL=example@example.com \ 
-e FILE=/FILE \ 
vitharme/rpi-sendthis