Send email via SSMTP from command line
100K+
SSMTP mailer in Docker container
NOTE: This is still just a development version. Do not use it in production!
Usage example:
cat message.txt | docker run -i \
-e SMTP_HOST=smtp.example.tld:587 \
-e SMTP_USER=SMTPUSER \
-e SMTP_PASS=SMTPPASSWORD \
-e TO="[email protected]" \
-e FROM_EMAIL="[email protected]" \
-e FROM_NAME="Your Name" \
-e SUBJECT="Subject" \
--rm itsziget/ssmtp-mailer
or store the message in a variable:
docker run -i \
-e SMTP_HOST=smtp.example.tld:587 \
-e SMTP_USER=SMTPUSER \
-e SMTP_PASS=SMTPPASSWORD \
-e TO="[email protected]" \
-e FROM_EMAIL="[email protected]" \
-e FROM_NAME="Your Name" \
-e SUBJECT="Subject" \
-e MESSAGE="This is the message" \
--rm itsziget/ssmtp-mailer
There are some security options turned on by default:
You can turn them off when you need:
docker run -i \
...
-e TLS=NO \
-e STARTTLS=NO \
...
Content type
Image
Digest
Size
3.6 MB
Last updated
almost 9 years ago
docker pull itsziget/ssmtp-mailer