<<< Date Index >>>     <<< Thread Index >>>

Sending text/html from Mutt



Hi all,

Environment: Redhat Linux ; Postfix ; Mutt 1.4.1i

I know most of the Internet community is against sending html emails. However, our company asks our customers if they are interested in receiving email in text format or html format. We send html emails out only on receiving a go-ahead from the recepient. Our emails do not have any images, and we use HTML just for formatting purposes.

I am using the following command to send an html email:
mutt -e "my_hdr Content-Type: text/html" -s "my subject" you@xxxxxxxxxxx < message.html

The header for the email looks as follows:

From: Joe Hansen <joe@xxxxxxxxxxx>
To: you@xxxxxxxxxxx
Subject: test7
Message-ID: <20050413223048.GA14611@xxxxxxxxxxx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Content-Type: text/html
Content-Length: 90

As you can see, there are two Content-Type headers. Though the email appears properly in most of the Email clients (eg Outlook Express), I learnt that a few email clients just display the html tags.

How can I avoid it? Thanks for your help.

Joe.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/