I understood how I can send a HTML message with sendmail
doing:
(
echo "From: me@example.com";
echo "To: you@example.com";
echo "Subject: this is my subject";
echo "Content-Type: text/html";
echo "MIME-Version: 1.0";
echo "";
echo "My <b>HTML message<\b> goes here!";
) | sendmail -t
I also manages to send an attachement with mail
doing
uuencode file.pdf file.pdf | mail -s "my subject" you@example.com
but I fail to send an HTML message with an attachement (.pdf).
Note that I failed to install mutt
or mpack
(using homebrew) so far so I would love a solution that works with mail
, mailx
or sendmail
. I am on Mac OS X 10.11