Sending limits with a timeframe of Swiftmailer

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
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Sending limits with a timeframe of Swiftmailer

Post by impulse() »

Hi.

My company is looking to send 43,000 e-mails out today and as I've only ever used Swift for sending a few hundred I'm not entirely sure how quickly this will be done with SwiftMailer. The mail server we'll be connecting to is local, the OS of the mail server is FreeBSD using Sendmail and as we're an ISP bandwidth isn't really an issue. Can somebody give me some advice on how long this will take to complete.

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

Re: Sending limits with a timeframe of Swiftmailer

Post by Chris Corbyn »

This is kinda one of those "how long is a piece of string" questions ;) It varies wildly depending upon your network and the configuration of the smtp server.

43,000 emails is a lot so I'd batch them. For a ballpark figure I'd say 2 hours of blasting a mail server would run those off, but they'll just end up spooled on the smtp server I imagine and it will then process them at 5-15 minute intervals.

If you're an ISP, why not delegate this job to several mail servers to balance the load? The rotator connection allows you to do this.
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Re: Sending limits with a timeframe of Swiftmailer

Post by impulse() »

Is load balancing a feature of SwiftMailer?
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Re: Sending limits with a timeframe of Swiftmailer

Post by impulse() »

Nevermind, Google was/is my friend :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Sending limits with a timeframe of Swiftmailer

Post by Chris Corbyn »

impulse() wrote:Is load balancing a feature of SwiftMailer?
Sort of. There's a connection class which actually delegates to an array of connections. Once it's used one, it moves to the next and so on... This also offers some redundancy though the logic has been greatly improved in v4 (coming soon).

There will also be some additional load balancing features in v4 but it's all a bit hush-hush for now ;)
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Re: Sending limits with a timeframe of Swiftmailer

Post by impulse() »

OK, thanks for your help.

I'll get back to you once it's complete and let you know how your class handled :)
geddi
Forum Commoner
Posts: 39
Joined: Sun Feb 24, 2008 11:01 am

Re: Sending limits with a timeframe of Swiftmailer

Post by geddi »

So...
Mr impulse()
What happened to the 43,000 mailout ?
How did it go and how long did it take ?

Really interested in knowing - thanks
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Re: Sending limits with a timeframe of Swiftmailer

Post by impulse() »

It hasn't been done yet. I will let you know the exact results once it's run.

Stephen,
Post Reply