title: issue in sending mails in bulk in php
body: <p>I am design a form for sending mail in bulk via phpMailer, for example i want to send a mail to 50 persons.but the issue is after sending mail 10 to 15 persons my form gives an file not found exception.</p>
  
  <p>my ajax call is given below</p>
  
  <pre><code>.on('success.form.bv', function(e) {            
          e.preventDefault();     
          $('#send_email_next').modal({
                  backdrop: 'static'
              });
          $.ajax({ 
                          type: "POST",
                          url: "email_next.php",
                          data: $("#emailform").serialize(),
                          success: function(html){ $("#modal_body").html(html);}
          });
      }); 
  </code></pre>
  
  <p>Phpmailer function called in email_next.php is given below</p>
  
  <pre><code>require_once("class.phpmailer.php");
  require_once("class.smtp.php"); 
  $mail = new PHPMailer();
  $body=" ";
  set_time_limit(0);
  $mail-&gt;IsSMTP();
  $mail-&gt;Timeout       =   10000;
  $mail-&gt;SMTPKeepAlive = true;
  $mail-&gt;SMTPDebug = false;
  $mail-&gt;do_debug = 0;
  $mail-&gt;SMTPAuth   = true;                  // enable SMTP authentication
  $mail-&gt;SMTPSecure = 'tls';                 // sets the prefix to the servier
  $mail-&gt;Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
  $mail-&gt;Port       = 587;                       // set the SMTP port
  $mail-&gt;Username   = $account_user_name;     // GMAIL username
  $mail-&gt;Password   = $password;            // GMAIL password
  $mail-&gt;From       = $account_user_name;
  $mail-&gt;FromName   = 'Rayat Bahra Group';
  $mail-&gt;Subject    = $_POST['subject'];   
  $mail-&gt;AltBody    = ''; 
  $mail-&gt;WordWrap   = 50; 
  $mail-&gt;MsgHTML($body);
  $mail-&gt;MsgHTML($content);
  $mail-&gt;IsHTML(true); // send as HTML
  $SN = 0;
  $error_mail=0;
  $total_mails_to_send = count($email_array);
  foreach($email_array as $recipient_address)
  {
  $mail2 = clone $mail;
  $mail2-&gt;MsgHTML($content);
  $mail2-&gt;AddAddress(trim($recipient_address));
  $status = $mail2-&gt;Send();
  if($status)
  {
      $SN++;
  }
  else{
      $error_mail = 1;
  }
  echo $SN." out of ".$total_mails_to_send. " sent &lt;br&gt;";
  }
  if($error_mail == 1)
      {
          echo "Message was not sent &lt;br /&gt;PHPMailer Error: " .  $mail-&gt;ErrorInfo;
      }
  else{
  
      echo "Message has been sent";
  }
  $mail-&gt;SmtpClose();
  </code></pre>