Last active
May 23, 2017 20:39
-
-
Save jeongho/5a591aa18af4212a645b9a0912713de9 to your computer and use it in GitHub Desktop.
smtp mail test script
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 "<h1>body</h1>" | /bin/mailx \ | |
-S smtp=smtp://aspmx.l.google.com \ | |
-S [email protected] \ | |
-s 'Subject [$(date -u %Y-%m-%d)] Hello World \nContent-Type: text/html\n' [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment