# Create impeccable MIME email from markdown

DevFeed: [Create impeccable MIME email from markdown](<https://devfeed.tech/articles/create-impeccable-mime-email-from-markdown-21488.md>)

Original publisher: [Read original article](<https://begriffs.com/posts/2020-07-16-generating-mime-email.html>)

Published: 2020-07-16T00:00:00Z

Content type: article

Language: en

Sources: [Joe Nelson](<https://devfeed.tech/sources/joe-nelson.md>)

Topics: [Markdown](<https://devfeed.tech/topics/markdown.md>), [Code](<https://devfeed.tech/topics/code.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Library](<https://devfeed.tech/topics/library.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Streams](<https://devfeed.tech/topics/streams.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [code](<https://devfeed.tech/tags/code.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [display](<https://devfeed.tech/tags/display.md>), [external](<https://devfeed.tech/tags/external.md>), [flow](<https://devfeed.tech/tags/flow.md>), [generate](<https://devfeed.tech/tags/generate.md>), [github](<https://devfeed.tech/tags/github.md>), [html](<https://devfeed.tech/tags/html.md>), [iso](<https://devfeed.tech/tags/iso.md>), [library](<https://devfeed.tech/tags/library.md>), [links](<https://devfeed.tech/tags/links.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [portable](<https://devfeed.tech/tags/portable.md>), [render](<https://devfeed.tech/tags/render.md>), [snippet](<https://devfeed.tech/tags/snippet.md>), [structure](<https://devfeed.tech/tags/structure.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

This article presents mimedown, a portable C99 utility that converts Markdown read from standard input into multipart MIME email written to standard output. It supports HTML and text alternatives, code snippets as inline attachments, external-link references, format=flowed text wrapping, and conservative ISO HTML output.

## Source excerpt

2020-07-16 I want to create emails that look their best in all mail clients, whether graphical or text based. Ideally I'd write a message in a simple format like Markdown, and generate the final email from the input file. Additionally, I'd like to be able to include fenced code snippets in the message, and make them available as attachments. I created a utility called mimedown that reads markdown through stdin and prints multipart MIME to stdout. Let's see it in action.