in reply to Re^3: Sending email with both html and plaintext
in thread Sending email with both html and plaintext

But that just makes my email have 2 attachments, I want both in the body not as attachments.
  • Comment on Re^4: Sending email with both html and plaintext

Replies are listed 'Best First'.
Re^5: Sending email with both html and plaintext
by soonix (Chancellor) on Feb 19, 2016 at 20:14 UTC
    You can only have 1 body, and a body consisting of both plain text and HTML is simply not possible. The first plain text attachment apparently ends up as body, so you could make that an explaining text.

    If you want it all in the body, you could incorporate the plain text part as a <pre>-formatted part into the HTML and use that as body. I prefer plain text mails, therefore haven't done that yet, but it should work that way, too.