Reputation: 7740
I am using django-mailer for sending emails. I have cron job running to send mails from the queue every minute. I use GMail's SMTP server to send mails. django-mailer will send mails one by one. The issue is each e-mail is taking 3-5 seconds to be sent. Is there anyway to send these emails in parallel? My requirement is send at-least 150 mails per minute.
Upvotes: 3
Views: 1081
Reputation: 16356
You have to queue your outbound emails and then either use a number of SMTPs in a round-robin fashion, or single SMTP that allows parallel connections (I'm not sure if it's possible according to the relevant RFC).
Or you can install e.g. Postfix and make your Django app relay emails to it. Then it's a matter of Postfix configuration.
Upvotes: 1