Sign inSign up

itsziget/ssmtp-mailer

By itsziget

•Updated almost 9 years ago

Send email via SSMTP from command line

Image
0

100K+

itsziget/ssmtp-mailer repository overview

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:

  • TLS=YES
  • STARTTLS=YES

You can turn them off when you need:

docker run -i \
  ...
  -e TLS=NO \
  -e STARTTLS=NO \
  ...

Tag summary

Content type

Image

Digest

Size

3.6 MB

Last updated

almost 9 years ago

docker pull itsziget/ssmtp-mailer