[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

mail fails when sending to large volume of recipients

Asked by sid455 in PHP Scripting Language

Tags: php, mail, email, large, sending

hi everybody

i've got a php script that loops through approximately 4500 email addresses in a postgres database and sends a newsletter. i've run a bunch of tests, sending the newsletters to my own email address, and get varying results. sometimes i'll get back 750 emails, other times i'll get back 2500, etc. it never seems to get through all 4500 emails, though. the site is hosted on a free bsd (unix) box. no special components are used to send the email, just mail().  i thought that the mail server itself may be becoming swamped once a certain number of emails get dropped into the outbox, so i tried adding a 2 minute pause (using php's sleep function) once a certain number of email have been sent. i've tried changing the pause to kick in when the script hits 500, 1000, 2000 emails, but still never seem to get through all emails.

anybody have any ideas?

while ($iCount < $iNumRecipients){
$rs = pg_fetch_object($data, $iCount);

// begin sending emails //
if (strstr($sEmailRecipient, '@') != false){ // make sure there's an @ sign in the email address //
      mail($sEmailRecipient, $sSubject, $sStyledEmailBody, $sStyledEmailHeaders);
      }

      // create pause if we're sending a large volume of email //
      if ($iSecondaryCount == 1000){ // we've hit 1000 emails sent - do a pause so we don't overwhelm the mail server //
            sleep(120); // delay for 2 minutes //
            $iSecondaryCount = 0;
      }

$iCount++;
$iSecondaryCount++;
}
[+][-]10/07/03 01:42 PM, ID: 9509015Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/07/03 02:23 PM, ID: 9509280Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/07/03 10:31 PM, ID: 9511284Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/08/03 10:49 AM, ID: 9514961Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/08/03 10:57 AM, ID: 9515018Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/08/03 12:38 PM, ID: 9515817Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: PHP Scripting Language
Tags: php, mail, email, large, sending
Sign Up Now!
Solution Provided By: mattjp88
Participating Experts: 4
Solution Grade: A
 
[+][-]10/10/03 08:25 AM, ID: 9528312Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/10/03 10:52 AM, ID: 9529282Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/10/03 01:02 PM, ID: 9530034Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/14/03 07:58 AM, ID: 9547524Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/14/03 08:06 AM, ID: 9547595Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/15/03 08:45 AM, ID: 9555715Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89