neon-jungle / wagtail-birdsong

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

Add support for plaintext alternatives in campaigns #51

Closed vegaelle closed 5 months ago

vegaelle commented 6 months ago

Fixes #50

Adds Campaign.get_text_template() that defaults to the same template as get_template(), but with a .txt extension. If the text template is found, it will be used to render a plaintext version of the mailing. If it isn’t, the mail will still be sent, but no plaintext part will be included. This means that mails without a text counterpart will be roughly 2 times lighter, and that text clients won’t display HTML content as text.

vegaelle commented 6 months ago

I’m thinking about allowing to switch from html to text render preview in the admin