Limit mail send on each connection

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
everisk
Forum Newbie
Posts: 11
Joined: Sat Mar 21, 2009 9:32 am

Limit mail send on each connection

Post by everisk »

Hi,

I'm still on 3.3.3 and i'm wondering if it's possible to use connection rotator for load balancing but set a limit on how many email each connection can send before moving to another connection. For example, I'd like to have connection one send 5000 emails and then loop to connection two to send another 8000 emails and then loop back to connection one. (I might have more than 2 connections but this is just an example).

Thanks!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Limit mail send on each connection

Post by Chris Corbyn »

Afraid not... you'll just need to create a subclass to add this behaviour (or just copy the connection class and edit it).

I can look at adding this to 4.0 however.
everisk
Forum Newbie
Posts: 11
Joined: Sat Mar 21, 2009 9:32 am

Re: Limit mail send on each connection

Post by everisk »

Oh, I really dont know much about OOP :(

Anyway, if anyone could help me that would be great but if not I guess i'll have to wait until this is added to 4.0.T_T

But thanks for a great library!
Post Reply