Last active
August 26, 2016 21:29
-
-
Save alexagranov/5249943 to your computer and use it in GitHub Desktop.
send HTML file via `sendmail'
This file contains 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 | |
MAILTO="<your.target@email>" | |
CONTENT="filename.html" | |
SUBJECT="Subject" | |
( | |
echo "Subject: $SUBJECT" | |
echo "MIME-Version: 1.0" | |
echo "Content-Type: text/html" | |
echo "Content-Disposition: inline" | |
cat $CONTENT | |
) | `which sendmail` $MAILTO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment