Server slow to connect? Lookup issue... stumped!

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
Sam Jeffers
Forum Newbie
Posts: 1
Joined: Fri Oct 31, 2008 11:35 am

Server slow to connect? Lookup issue... stumped!

Post by Sam Jeffers »

Hi all,

I'm using swiftmailer to send out newsletters. It currently seems to take almost exactly 6 minutes for the script to get started - I submit the form, then the database queries perform really quickly, the decorator plugin does its bit and then everything just... waits.

I set up timing points throughout the script and it hangs just at the batchSend() call. Once it's waited, it then sends as normal, albeit a bit slowly (3000 emails takes around 15 minutes, including the hang time).

Can anyone think of any likely culprits? It's a linux server, using the SMTP connection method. Any ideas about how I might debug the problem?

A secondary issue is that I never get any response from the failedRecipients() call in the log, which I call thusly: $failed = $log->getFailedRecipients(); (then var_dump($failed) gives nothing). Does anyone know why that might be? I see output from the log when it's set at levels 3 and 4, although just the standard SMTP chatter.

Any light you can throw on either of these issues would be hugely welcomed.

Sam
User avatar
dharprog
Forum Contributor
Posts: 126
Joined: Fri Oct 27, 2006 12:20 am

Re: Server slow to connect? Lookup issue... stumped!

Post by dharprog »

Hi

I do not know the reason, for me it is taking more than 20 min to send just 500 emails.

I am not getting how to handle and what are the loop holes does it have.

But for me i am receiving failure message by using return path address method.

Thanks and Regards,
Dharprog
Post Reply