Link to home
Start Free TrialLog in
Avatar of xiaoyunwu
xiaoyunwuFlag for United States of America

asked on

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.
Avatar of bira
bira

suppose your html file is at /tmp/x.html

 run

 mutt -s "Subject" -a /tmp/x.html  recipient < /dev/null
ASKER CERTIFIED SOLUTION
Avatar of slyong
slyong

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi

Read the following link

it will give clear understanding about mutt

http://www.mutt.org/doc/manual/manual-2.html
Avatar of xiaoyunwu

ASKER

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
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
Mutt 1.0pre2us (1999-08-31)
thanks.
hi xiaoyun,

that's an old version see if you could upgrade to the latest.