Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
send HTML file via `sendmail'
#!/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