• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3373
  • Last Modified:

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.
0
xiaoyunwu
Asked:
xiaoyunwu
1 Solution
 
biraCommented:
suppose your html file is at /tmp/x.html

 run

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

mutt -e 'set content_type="text/html"' me@mydomain.com -s "subject" < index.html
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now