How does one send an email to 10,000 users in Django? How does one send an email to 10,000 users in Django? django django

How does one send an email to 10,000 users in Django?


You should use send_mass_mail since it won't close the connection every time. docs

I would also chunk the messages into groups of about 100-1,000, depending on how powerful your server is. The reason is that you can catch errors in smaller groups for retrying. This also results in a separate email per recipient, which is ideal. BCC'ing thousands of people is not great.


An alternative suggestion: sign up to a mailing service and use their APIs to maintain your email list and send out mailings. A couple of advantages to this approach:

  • They’ll handle any unsubscribe requests for you, so you don’t have to worry about adding exclusion flags to your users who don’t want your emails.
  • You’re less likely to get spam-filtered out of your users’ inboxes, or to annoy your hosting provider.

There are API wrappers available for, among others, MailChimp and Campaign Monitor. It should be fairly easy to add in hooks to add new users to the mailing list and (if relevant) remove any users who delete their accounts.


I think, an E-mail BCC header cannot contain 10000 records.