[Ilugc] Re: Need help on sending html mail

  • From: gopal@xxxxxxxxxxxxxxxxx (Gopalarathnam Venkatesan)
  • Date: Tue Feb 6 19:53:04 2007

Bhagath Kumar , Tidel Park - Chennai wrote:

mutt someid <at>  -s "some subject" -a yourfile.html -x < /dev/null
I tried this . when using this command my html file is received as a
attachment.


I don't think these MUAs allow you to set the entire mail (including 
headers) by yourself.

The best way is to shoot the mail directly through sendmail[1], 
something like:

cat | sendmail
To: foo@xxxxxxx
From: your@address
Subject: Test HTML Mail
Content-Type: text/html
MIME-Version: 1.0

<b>It worked!</b>
^D

It should work ;)

[1] or your favourite program

-- 
Gopalarathnam Venkatesan

http://gopalarathnam.com/

Other related posts: