Home

Awesome

Markdown to multipart MIME

Answering the age-old debate: HTML or plaintext emails? Both!

Write email in markdown, and convert to multipart MIME that works impeccably in graphical and console mail clients.

Installation

Written in portable C99. The only requirement is the cmark library to parse markdown.

# detect cmark and set up build flags
./configure
# then build md2mime
make

Usage

./md2mime sender-domain.com < message.md > message.email

The sender domain is required to generate a good Message-ID.

If the original message starts with headers, pass -p to preserve them. Send the message using a program like msmtp:

msmtp recipient@example.com < message.email