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

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

Send an html mail from mutt on cli

Set your from address:

.. code-block:: bash

export EMAIL=‘foxhop.net no-reply@foxhop.net

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

.. code-block:: bash

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