Django - send bulk emails using django-mailer

I am using django-mailer to send emails. I do a cron job to send emails from the queue every minute. I use the GMail SMTP server to send emails. django-mailer will send letters one at a time. The problem is that each email takes 3-5 seconds to send. Do I need to send these letters in parallel? My requirement is to send at least 150 letters per minute.

+3
source share
1 answer

You must queue your outgoing emails, and then either use multiple SMTPs in a round-robin mode, or one SMTP that allows you to use parallel connections (I'm not sure if this is possible according to the corresponding RFC).

Or you can install, for example. Postfix and make your emails with the Django app. Then this is a Postfix configuration issue.

+1
source

Source: https://habr.com/ru/post/1774287/


All Articles