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.
text/uri-list inline attachment, and referred to with short codes like
[0], [1] ... in the message text.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
./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
C
98.1%
Makefile
1.9%
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.
text/uri-list inline attachment, and referred to with short codes like
[0], [1] ... in the message text.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
./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
C
98.1%
Makefile
1.9%