Blog Archive

Friday, 2 June 2006

how to send html mime mail from linux command line

simply put something like this in a plain file:

MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
subject: test

<html>
<b>hello world!</b>
</html>




and then do this:

cat filename | sendmail -v recipient@email.com