use mutt to send html email

How to use mutt to send an html file?
I need to use mutt since I need to attach a file.
Thanks.
xiaoyunwuAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
slyongConnect With a Mentor Commented:
Try:

mutt -e 'set content_type="text/html"' me@mydomain.com -s "subject" < index.html
0
 
biraCommented:
suppose your html file is at /tmp/x.html

 run

 mutt -s "Subject" -a /tmp/x.html  recipient < /dev/null
0
 
anumalasCommented:
Hi

Read the following link

it will give clear understanding about mutt

http://www.mutt.org/doc/manual/manual-2.html
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
xiaoyunwuAuthor Commented:
I tried: mutt -e 'set content_type="text/html"' me@mydomain.com -s "subject" < index.html
buy I get the following error:
Error in command line: content_type: unknown variable
0
 
slyongCommented:
can you check your mutt version?  version 1.4.x does not support content_type properly, you need version 1.5.x.  It can be downloaded here http://www.mutt.org/download.html
0
 
xiaoyunwuAuthor Commented:
Mutt 1.0pre2us (1999-08-31)
thanks.
0
 
slyongCommented:
hi xiaoyun,

that's an old version see if you could upgrade to the latest.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.