How to send from multiple SMTP accounts in batches of 1,

Summer Sauce

Beginner
I have several hundred SMTP accounts. I need for emails to be sent from multiple accounts at the same time.

Example:

That sends 1 email per smtp at a time in batches of 50. Loop would normally connect to one smtp send the email, then connect to the next.​

For instance, it would first establish connections with SMTPs 1 through 50 (concurrently), send one email from each of the 50 SMTPs concurrently to the initial 50 contacts, then proceed to connect with SMTPs 51 through 100, sending one email from each to the next 50 contacts on the list.​



How do I do this?
 
@Summer Sauce , I apologize for the delayed response, as I just scrolled down and saw this topic. I believe you want to open parallel processes for multiple smtp accounts. To achieve this, multithreading should do the job (depending on the available resources in your server). Multithreading opens parallel processes inside the server, and each process does its own job. For example, 50 threads would be 50 parallel processes simultaneously and it will pick up 50 smtps randomly and start sending emails keeping the batch size in consideration. So if your batch is set to 100, it means 50 smtps will send out 50x100=5000 emails in parallel before shifting to the next available smtps.

Disclaimer: Multithreading will multiply the consumption of the server resources, so you need to evaluate/gauge yourself accordingly.
 
Back
Top