aebstract Posted October 8, 2008 Share Posted October 8, 2008 Okay let's see if I can make this as clear as possible as to what I am trying to figure out. I have a script that sends out an email to about 400 email addresses. My email address is about 10 deep, then I have someone else I work with about half way and finally a third person near the end. Me and the first person both got the mail, the last person did not. I have set_time_limit(0); at the very top of my script so that it won't time out due to it taking so long to process. So this means it must be something else causing it to cut short? Is there any way for me to test and find the problem and get a solution without physically sending out an email to all of these users, as I cannot spam the emails of important people running chicken processing plants around America. I don't even know where to begin to troubleshoot this. Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted October 8, 2008 Share Posted October 8, 2008 Simple answer - check the server outbound mail logs. The php mail() function will not return any error, only a boolean true/false. That is assuming you are using the mail() function. If you are it is a bad idea for large volumes of email. Quote from php.net manual: Note: It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the » PEAR::Mail, and » PEAR::Mail_Queue packages. Quote Link to comment Share on other sites More sharing options...
aebstract Posted October 8, 2008 Author Share Posted October 8, 2008 See I only have 2 logs: access_log and error_log and neither are gonna really help me figure this out. I'll take a look at the PEAR package mail and see what I can figure out with it, hopefully not get too lost. Topic still open for recommendations/help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.