I’m building a Django 5.1 project and need to send newsletters and campaign emails to about 10,000 subscribers. Django’s default SMTP backend is too slow for this, and I want proper bounce handling and unsubscribe support.
I’m comparing a bulk email marketing service provider that works through SMTP or API, and I’m thinking of using django-anymail to connect it. Which one are you using in production, and how do you handle bounces, unsubscribes, and sending in the background with Celery?
You are on the right track with django-anymail — it is the piece that makes this manageable, because it puts the provider API behind Django’s normal email backend and gives you structured webhook handling for bounces and complaints.
For 10,000 subscribers, the provider choice matters less than the setup around it. Pick a provider with a proper webhook for bounces, spam complaints and unsubscribes, and wire that webhook up so bounced addresses are suppressed in your own subscriber table automatically. Hard bounces should never be retried — mailing dead addresses repeatedly is what hurts your sender reputation over time. For unsubscribes, keep the state in your own database with a per-subscriber token, and use the provider’s one-click unsubscribe header support, so unsubscribing still works even if you change providers later.
For background sending, a Celery task per batch works well — something like 500 to 1,000 recipients per task, sent through the anymail backend inside the task, with a send log row per recipient so a failed batch can resume where it stopped instead of starting over. Keep the newsletter send separate from your transactional mail: use a different sending domain or subdomain for bulk mail so a deliverability problem with a campaign cannot take down password resets and order emails.
On cost at your volume, Amazon SES is usually the cheapest option, while Mailgun and SendGrid are easier to set up with webhooks out of the box. Either way, get SPF, DKIM and DMARC in place on the sending domain first, and warm the volume up gradually rather than sending to all 10,000 on day one.
For large mailing lists, you’re better off using a bulk email service provider that can do things like spread out sending over hours or days to improve deliverability. Bulk ESPs also tend to provide confirmed opt-in, bounce and feedback loop handling, and other mailing list hygiene that helps keep your mail out of the spam folder. (Of course, this assumes you’re sending mail your subscribers want to receive.)
Django’s core mail functions are really designed for transactional email, not bulk sending. (That’s why django-anymail only supports ESPs that have transactional sending APIs.) You could build your own bulk email features on top of Django, but it’s often easier and ultimately less expensive to outsource that expertise to a company that specializes in bulk email delivery.
As django-anymail’s maintainer, I don’t recommend specific ESPs. But I would certainly avoid ones that feel a need to engage in underhanded stealth marketing—like creating sock puppet accounts to post pretext questions in the Django forum. (There’s one particular ESP that tries that every few months here.) Legitimate, reliable ESPs are able to rely on genuinely earned word-of-mouth for marketing, and there are plenty of them to choose from.