Solved

use mutt to send html email

Posted on 2006-07-07
7
3,122 Views
Last Modified: 2012-06-21
How to use mutt to send an html file?
I need to use mutt since I need to attach a file.
Thanks.
0
Comment
Question by:xiaoyunwu
7 Comments
 
LVL 6

Expert Comment

by:bira
ID: 17062505
suppose your html file is at /tmp/x.html

 run

 mutt -s "Subject" -a /tmp/x.html  recipient < /dev/null
0
 
LVL 24

Accepted Solution

by:
slyong earned 500 total points
ID: 17067393
Try:

mutt -e 'set content_type="text/html"' me@mydomain.com -s "subject" < index.html
0
 
LVL 3

Expert Comment

by:anumalas
ID: 17070674
Hi

Read the following link

it will give clear understanding about mutt

http://www.mutt.org/doc/manual/manual-2.html
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:xiaoyunwu
ID: 17072353
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
 
LVL 24

Expert Comment

by:slyong
ID: 17076467
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
 

Author Comment

by:xiaoyunwu
ID: 17076534
Mutt 1.0pre2us (1999-08-31)
thanks.
0
 
LVL 24

Expert Comment

by:slyong
ID: 17076544
hi xiaoyun,

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question