Speed issues
Posted: Thu Apr 16, 2009 8:28 am
Hi folks
I've got a script that uses Swift to send out a number of emails to customers. Each email is different, so I can't use cc or bcc.
The problem is, I can't find a way to get the dispatch time for each email to under a couple of seconds. Because there are a lot of emails, and the script is called via a web request, there are issues with keeping the request running long enough without timing out, so I'm looking to speed things up.
By default, we're using the SMTP server of our mail host: this is slow, even though they are a top-class host.
I also tried using a local mail transport on our linux server, but to my surprise, this was no faster. Perhaps because shelling out of PHP is so slow? Ditto with using the mail transport. So each transport is giving me similar, slow results.
I'd welcome any ideas about how to speed up sending mails from php, using Swift or by some other method.
Geoff
I've got a script that uses Swift to send out a number of emails to customers. Each email is different, so I can't use cc or bcc.
The problem is, I can't find a way to get the dispatch time for each email to under a couple of seconds. Because there are a lot of emails, and the script is called via a web request, there are issues with keeping the request running long enough without timing out, so I'm looking to speed things up.
By default, we're using the SMTP server of our mail host: this is slow, even though they are a top-class host.
I also tried using a local mail transport on our linux server, but to my surprise, this was no faster. Perhaps because shelling out of PHP is so slow? Ditto with using the mail transport. So each transport is giving me similar, slow results.
I'd welcome any ideas about how to speed up sending mails from php, using Swift or by some other method.
Geoff