Created
March 16, 2015 08:23
-
-
Save qinshulei/57c3aaefae0c91ddc695 to your computer and use it in GitHub Desktop.
send html email use template by 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
| #!/bin/bash | |
| TITLE="Mail Title" | |
| CONTENT="Mail Content" | |
| cat <<EOF | mutt -s "${TITLE}" -e 'set content_type="text/html"' -- 527072230@qq.com | |
| <html> | |
| <body> | |
| <h1>${TITLE}</h1> | |
| <p>${CONTENT}</p> | |
| </body> | |
| </html> | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment