Created
May 16, 2017 08:58
-
-
Save tworzenieweb/9b372fe32a8d56035069ea37cacd4f34 to your computer and use it in GitHub Desktop.
Sending smtp email through bash
This file contains hidden or 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 "justtesting" | mailx -s "Subject" -S smtp=smtp://outlook.office365.com -S smtp-use-starttls -S ssl-verify=ignore -S smtp-auth=login -S smtp-auth-user=<user>-S smtp-auth-password=<password> -S from="Sender <sender@email>" recipient@email |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment