Docker alpine senEmail(SMTP cilent) binary to send emils using SMTP
6.5K
sendEmail binary in docker alpine
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
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"
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"
Jan 17 05:18:08 sendemail sendEmail[1]: Email was sent successfully!
If this helps, Fork & Star it :)
Content type
Image
Digest
Size
12.4 MB
Last updated
over 8 years ago
docker pull vivekyad4v/docker-alpine-sendemail