neon-jungle / wagtail-birdsong

Create, send, preview, edit and test email campaigns from within Wagtail
BSD 3-Clause "New" or "Revised" License
103 stars 27 forks source link

Birdsong uses the mail rendered HTML as plaintext part #50

Closed vegaelle closed 4 months ago

vegaelle commented 5 months ago

In a multipart mail, the text part is meant to provide a plaintext version of the content. What Birdsong currently does, is replicate the whole rendered MJML template both in the HTML and text parts. Which means clients that prefer to display plaintext in priority will show very boring HTML tags.

A quick workaround would be to completely avoid sending a text part, since it’s currently unusable. I’d be willing to work on a PR allowing to provide a text-only template in order to generate clean plaintext contents.