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

Using Django's mail utilities to support multiple backend #52

Closed fzerman closed 2 months ago

fzerman commented 2 months ago

You should use Django's mail utilities to support multiple backend instead of write your own. Because other django mail provider packages like django-anymail override this utilities. Then u can use the provider without changing your code. You should consider https://docs.djangoproject.com/en/5.0/topics/email/#send-mass-mail.

seb-b commented 2 months ago

the built in smtp backend does use the standard django methods for sending mail, if you dive into that class you'll see the send_mass_html_mail uses the mail utilities. Are you having a specific problem running django-anymail and birdsong alongside each other?

fzerman commented 2 months ago

No, i dont have. when i see, "multiple provider will add" in readme, i think you will point other services like mailgun, mailchimp, etc. So, i added this issue for an small advice.