Solved

use mutt to send html email

Posted on 2006-07-07
7
3,086 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now