Sending HTML email from bash

Posted on 2005-05-17
Last Modified: 2008-02-01
Has anyone been able to send HTML email from bash? I know that I could do it with PHP, but I'm trying to make the script without using any outside sources. If I have to, it's understandable.

Currently, I'm using mutt to send the file since I have attachments as well.

cat somefile.htm |mutt -s "subject" -a file.txt
Question by:SpasticChicken
    LVL 38

    Expert Comment

    Which mail client you use in bash script?

    Author Comment

    I use mutt, but I figured out what I needed to do:

    mutt -e "my_hdr Content-Type: text/html" -s "my subject" < message.html
    LVL 38

    Accepted Solution

    Glad to hear your issue resolved and post your solution here.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    731 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

    18 Experts available now in Live!

    Get 1:1 Help Now