PHP mail() Fails on Mass Emails
Posted by: greenmile
Posted on: 2006-01-23 12:28:00
I'm running a community pool website where I've enabled a mail form for the president to send emails to pool members.
This code worked fine on my other host. Sometimes, if over 300 mails were sent, I broke up the mail() function into 3 seperate processes as to not break the system with so many mails in the BCC header.
However, I just switched to Dreamhost and now my code is not working. It does work with less than 20 addresses, but when more than that, it breaks.
First of all, is there a way I can see the PHP logs? (because it's failing silently and I don't know why)
Second, do you guys know if Dreamhost has placed a limit on the BCC header value to only allow a limited amount of addresses?
I can tell you that this isn't a "lagging" issue where the emails will be sent eventually. It's failing immediately without even trying to the send the mails.
Basically I have a:
if(mail(....))
echo "Successful";
else
echo "Failure";
And I keep getting the failure message when sending mails to many (over 20 or so) people. But again, this works when sending less than 20.
Thanks,
greenmile@operamail.com