I need advice speeding up execution of a script that sends personalized messages to a fairly large recipient list.
I’m using the phpmailer class from sourceforge to send MIME email to a list of about 50k users. It’s very slow, whether I’m using smtp, sendmail or php’s mail(). Actually it seems to hang completely if the batch size is much larger than 250 recipients.
I read that using smtp would speed things up but I suspect that’s only true if each mail is identical. As I mentioned, mine are customized with recipient’s name and a few other unique items of information.
I’m wondering if anyone can give me some tips on pushing this thru smtp faster. I know that’s the bottleneck as the select query and file reading portions of my script (for building the html message body) run nice and fast.
Any help will be sincerely appreciated!