Ejemplo n.º 1
0
 } else {
     $mail->MsgHTML($message);
     $mail->AltBody = $textmsg;
     //"To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
 }
 // now send it
 if (!$mail->Send()) {
     $x_errors++;
     echo $PHPML_LANG["error_sending"] . " to:" . $row['email'] . "<br /><br /><b>" . $mail->ErrorInfo . "<br /><br /></b>";
 } else {
     $x_ok++;
 }
 if ($num > 1) {
     $mail->ClearAddresses();
     $mail->ClearCCs();
     $mail->ClearBCCs();
     $mail->ClearReplyTos();
     $mail->ClearAllRecipients();
     $mail->ClearAttachments();
     $mail->ClearCustomHeaders();
 }
 $xi++;
 if (isset($phpml['progressmin'])) {
     $minProgressDisplay = $phpml['progressmin'];
 } else {
     $minProgressDisplay = 25;
 }
 if ($num > $minProgressDisplay) {
     $width += $width_per_iteration;
     // update progress bar
     $thisPercentage = $width / 300 * 100;