Skip to content

Instantly share code, notes, and snippets.

@jeongho
Last active May 23, 2017 20:39
Show Gist options
  • Save jeongho/5a591aa18af4212a645b9a0912713de9 to your computer and use it in GitHub Desktop.
Save jeongho/5a591aa18af4212a645b9a0912713de9 to your computer and use it in GitHub Desktop.
smtp mail test script
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