-
-
Save RustyNails8/37e139d7e10a2fdab888bacbb13f7f76 to your computer and use it in GitHub Desktop.
How to send an email from bash via SMTP Auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "PUT YOUR MAIL BODY HERE" | mailx -s "SUBJECT" -S smtp=smtp://yoursmtpserver.com -S smtp-auth=login -S smtp-auth-user=YOUR_USERNAME -S smtp-auth-password=YOUR_PASSWORD -S from="Sender Name <[email protected]>" [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment