send-an-html-mail-from-mutt-on-cli

15y, 19d ago [edited]

Send an html mail from mutt on cli

Set your from address:

export EMAIL='foxhop.net <no-reply@foxhop.net>'

Send an html email body, with a subject, and and attachment to one recipient:

mutt -e 'set content_type=text/html' -s 'subject' -a path/to/attachment.jpg -- email@example.com < body.html

Comments

We'll email a 6-digit code to verify your comment and notify you of replies.

hide preview ▲show preview ▼
Leave first comment to start a conversation!