Skip to content

Instantly share code, notes, and snippets.

View alexagranov's full-sized avatar
🍇
tranquiloquint

Alex Agranov alexagranov

🍇
tranquiloquint
View GitHub Profile
@alexagranov
alexagranov / html_via_sendmail.sh
Last active August 26, 2016 21:29
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