SwiftMailer script not running very swiftly...

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
symbiat
Forum Newbie
Posts: 3
Joined: Mon Jun 30, 2008 11:25 am

SwiftMailer script not running very swiftly...

Post by symbiat »

In testing my script, sending to a few recipients was very fast.

Now Im running in production and the actual send for each email is taking > 30 seconds PER email address. Is this normal?

Im using the anti-flood plugin, limits set to 100 emails with 10 second nap between batches.
symbiat
Forum Newbie
Posts: 3
Joined: Mon Jun 30, 2008 11:25 am

Re: SwiftMailer script not running very swiftly...

Post by symbiat »

Never mind, I figured this out. The problem was a slow database query which Ive now changed to run much faster.

Is there anyway to catch this exception?

"The recipients parameter must either be a valid string email address, an instance of Swift_RecipientList or an instance of Swift_Address."

Im sending out a large mailing and get this exception when it finds an incorrectly formatted email address.
Last edited by symbiat on Tue Jul 01, 2008 8:53 am, edited 1 time in total.
symbiat
Forum Newbie
Posts: 3
Joined: Mon Jun 30, 2008 11:25 am

Re: SwiftMailer script not running very swiftly...

Post by symbiat »

OK, I put in a generic exception handler to take care of it. Never mind (again :D )
Post Reply