PHPMailer - inconsistent sending of multiple emails
Posted: Thu Aug 14, 2008 8:40 pm
I'm using PHPMailer to send a number of emails. I get the result of a query on email addresses and then go through a loop to send each email. I cannot send them as a group since I don't want all recipients to see everyone's email address.
I'm using a test group of 100 records. One time, it will get all the way through. The next time, it will send 18. The next time, 77. So, I can't count on this. I've put a delay in with usleep() after so many records, but I will have much larger volumes and I'm trying to not delay the sending too much. Can anyone shed any light on why there are inconsistent send counts, especially since they vary so widely on a small bacth? If I can understand the factors that cause it to fail, maybe I can control them better.
I'm sending them through my Comcast account for the meantime as a test. I'm sure a dedicated server would perform better, but it is important to understand what affects this since I'll have much larger volumes on the dedicated server. I would think that this small amount through the Comcast server shouldn't pose a problem.
Thanks for any suggestions.
I'm using a test group of 100 records. One time, it will get all the way through. The next time, it will send 18. The next time, 77. So, I can't count on this. I've put a delay in with usleep() after so many records, but I will have much larger volumes and I'm trying to not delay the sending too much. Can anyone shed any light on why there are inconsistent send counts, especially since they vary so widely on a small bacth? If I can understand the factors that cause it to fail, maybe I can control them better.
I'm sending them through my Comcast account for the meantime as a test. I'm sure a dedicated server would perform better, but it is important to understand what affects this since I'll have much larger volumes on the dedicated server. I would think that this small amount through the Comcast server shouldn't pose a problem.
Thanks for any suggestions.