title: PhpMailer - Cannot send newsletter to large amount of subscribers
body: <p>Im having a big problem here!
  I need to send a newsletter to all my subscribers (around 1200)
  The thing is that it only sends the newsletter to 150-180 of them.
  I have a script implemented in php that uses the PhpMailer() class to send the newsletter to all the subscribers.</p>
  
  <p>I purchased a plan in MailJet that allows me to send 30 thousand emails per month, so Im using their SMTP host to send the newsletter.</p>
  
  <p>Here is my script:</p>
  
  <pre><code>$mail             = new PHPMailer();
  $body             = $message;
  $body             = eregi_replace("[\]",'',$body);
  
  $mail-&gt;IsSMTP();
  $mail-&gt;SMTPAuth   = true;
  $mail-&gt;Host       = "in.mailjet.com";
  $mail-&gt;Port       = 80;
  $mail-&gt;Username   = "username";
  $mail-&gt;Password   = "password";
  
  // thing regarding the body, subject, etc of the email //
  
  $to_list = explode(',',$to);
  $between_delay = 75; //max limit of mails send at a slot
  $send_count = 1; 
  $send_delay = 1; //Delays the program execution for the given number of seconds.
  
  ignore_user_abort(true); // Ignore user aborts and allow the script to run forever
  set_time_limit(300); //to prevent the script from dying
  
  foreach($to_list as $row){
      if ( ($send_count % $between_delay) == 0 ){
          sleep( $send_delay ); //Delays the program execution for the given number of seconds.
      }
      $address = $row;
      if(!empty($address)) {
          $mail-&gt;AddAddress($address, "User");
          $mail-&gt;Send();
          $mail-&gt;ClearAddresses(); //clear address
     }
     $send_count++;
  }
  
  if(!empty($mail-&gt;ErrorInfo)) {
       // display an error
  }
  </code></pre>
  
  <p>I really dont know what may be the problem but for some reason it stops sending emails after the number 180 approximately.
  Could it be something regarding the <strong>set_time_limit(300);</strong> ??</p>