I am currently using org-mu4e with

(setq org-mu4e-convert-to-html t)

and (org-mu4e-compose-org-mode). When I attach files to a email I get the classical

<#part type="application/type" filename="/somepath/somefile" disposition=attachment description=somedescription>

inserted into the body, but when org-mode converts the body to html it somehow does nothing and the actual email displays the code <#part.... #/part> without including any file. Is there any workaround? I need the option org-mu4e-convert-to-html since I use LaTeX in my emails.

2 Answers 2


You have to put the html code in

#+begin_export html

block so that it is exported to html format via babel.

Edit: I wrote "src" instead of export by mistake 😅.

  • 1
    That didn't work sadly Commented Nov 12, 2019 at 18:54
  • Fixed it in the next answer. Thanks. Commented Nov 12, 2019 at 19:02
  • It also didn't work for me. I'm starting to think that it is impossible to add an attachment with org-mime. I am on mu4e 1.5.3.
    – Ajned
    Commented Jul 25, 2020 at 9:40

The actual solution is to enclose the <#part ...> tag like this:

 <#part ...> <#/part>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.