I'm trying to send an html-formatted email via gnus. I found this:


which suggests:

1. M-x mml-insert-part enter
2. Content type: text/html

I tried this as shown in the screenshot:

enter image description here but got a plaintext email (on an android gmail client).

What is the proper way to do it or what am I doing wrong?

  • I should add that I'm not looking for a discussion on whether html emails are evil or not, like into what the linked google groups thread devolved
    – erjoalgo
    Jun 24, 2017 at 21:32
  • 1
    I'm not very familiar with this subject, but my instinct says the xhtml content should fall between the <#part ...> and <#/part> MML tags inserted by mml-insert-part.
    – Basil
    Jun 24, 2017 at 23:33
  • that was it, tt may seems obvious but other solutions I tried (and that did work, like this: tokiwinter.com/…) seem to work by setting a global "interpret content as html" flag, so was thinking in those terms. nice to be able to mix html and plaintext. @Basil could you add as an answer?
    – erjoalgo
    Jun 25, 2017 at 3:12
  • I'm new to this community, but the consensus amonst moderators seems to be in favour of closing questions which revolve around simple user errors like this one. I'll make an answer out of my comment just in case, but you may want to consider closing the question.
    – Basil
    Jun 25, 2017 at 16:11
  • If you use org-mode, you can use org-mime. This converts your text into a multipart message; one HTML, one plain text. Jul 12, 2017 at 17:40

1 Answer 1


It seems your problem is a simple syntax error: the xhtml content in question should be placed within the <#part ...> <#/part> tag pair inserted by mml-insert-part in order to be interpreted as anything other than plaintext.

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.