Skip to content

Instantly share code, notes, and snippets.

@tworzenieweb
Created May 16, 2017 08:58
Show Gist options
  • Save tworzenieweb/9b372fe32a8d56035069ea37cacd4f34 to your computer and use it in GitHub Desktop.
Save tworzenieweb/9b372fe32a8d56035069ea37cacd4f34 to your computer and use it in GitHub Desktop.
Sending smtp email through bash
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