I am trying to use mutt to send emails with the following characteristics:

1. Mail whose content is html - I can do this by specify -e "my_hdr
Content-Type: text/html", and formatting the message as a pure html
file, e.g. no extra headers.

2.  Mail whose content is html, but must all support attachments.

I also need be able to send emails from the command line.

There is a further constraint that I have to use mull v. 1.2.5.1i

It does not seem possible to use mutt to achieve this. If I specify
the -e "my_hdr ..." and the -a option within the same email, the
ultimate header received in the email at the recipient contains

Content-Type: text/html

which isn't correct, mutt should have used:

Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq"

If I don't specify the -e, then the section with the message, which is
html, is formatted as this:

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

If I try to invoke mutt like this:

-e "my_hdr Content-Type: text/html" \
-e "my_hdr Mime-Version: 1.0" \
-e "my_hdr Content-Type: multipart/mixed; boundary=\"IS0zKkzwUGydFO0o\"" \
-e "my_hdr Content-Disposition: inline" \

mutt throws an error

Error in command line: boundary=IS0zKkzwUGydFO0o: unknown commandS

If I try formatting a complete email and use the -H option with mutt,
mutt strips out the multipart/mixed boundary line. Why?

So, is it possible to specify the Content-Type: header inside a
multipart mime email with mutt?

Thanks for any help.

Reply via email to