Page 1 of 1

SwiftMailer script not running very swiftly...

Posted: Mon Jun 30, 2008 11:29 am
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.

Re: SwiftMailer script not running very swiftly...

Posted: Tue Jul 01, 2008 8:22 am
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.

Re: SwiftMailer script not running very swiftly...

Posted: Tue Jul 01, 2008 8:52 am
by symbiat
OK, I put in a generic exception handler to take care of it. Never mind (again :D )