Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

use mutt to send html email

Posted on 2006-07-07
7
Medium Priority
?
3,292 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 2000 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month8 days, 4 hours left to enroll

824 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