Пример #1
0
     //"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;
     echo '<div class="progress_wrapper">';
     echo '<div class="progress" style="width:' . $width . 'px;">' . sprintf("%01.0f", $thisPercentage) . '%</div>';
     echo '</div>';