Sign inSign up

vivekyad4v/docker-alpine-sendemail

By vivekyad4v

•Updated over 8 years ago

Docker alpine senEmail(SMTP cilent) binary to send emils using SMTP

Image
2

6.5K

vivekyad4v/docker-alpine-sendemail repository overview

LinkedIn     Build Status

⁠docker-alpine-sendEmail

sendEmail binary in docker alpine

⁠sendEmail(SMTP client), define environment variables as below -
export [email protected]           ## From addess & user email for authentication
export [email protected]
export PASSWD_EMAIL=ab12345678
export SMTP_EMAIL="smtp.gmail.com:587"
export SUBJECT_EMAIL="This should be the email subject"
export CONTENT_EMAIL="This is the content/body of email"      ## You can give file as a content
⁠Using Public Image, needs environment variables to be predefined
docker-compose run --rm vivekyad4v/docker-alpine-sendemail bash -c "sendEmail -u $SUBJECT_EMAIL -m $CONTENT_EMAIL -f $FROM_EMAIL -t $TO_EMAIL -s $SMTP_EMAIL -o tls=yes -xu $FROM_EMAIL -xp $PASSWD_EMAIL"
⁠sendEmail
docker-compose run --rm sendemail bash -c "sendEmail -u $SUBJECT_EMAIL -m $CONTENT_EMAIL -f $FROM_EMAIL -t $TO_EMAIL -s $SMTP_EMAIL -o tls=yes -xu $FROM_EMAIL -xp $PASSWD_EMAIL"
⁠Expected output
Jan 17 05:18:08 sendemail sendEmail[1]: Email was sent successfully!

If this helps, Fork & Star it :)

Tag summary

Content type

Image

Digest

Size

12.4 MB

Last updated

over 8 years ago

docker pull vivekyad4v/docker-alpine-sendemail