Jump to content

help w/ troubleshooting email addresses and mail()


aebstract

Recommended Posts

:(

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.