How to send HTML email using linux command line
I need to send email with html format. I have only linux command line and command "mail".

This worked for me:
echo "<b>HTML Message goes here</b>" | mail -s "$(echo -e "This is the subject\nContent-Type: text/html")" foo@example.com

