select($query, $perPage, $_GET['page']); } ?>
", "

", "

"); $textcodes = array("\r\n", "", "\r\n\r\n"); $text = str_replace($htmlcodes, $textcodes, $html); $text = strip_tags($text); $text = html_entity_decode_utf8($text); $html = str_replace($GLOBALS['rootRel'],$glob['storeURL']."/",$html); if ($_POST['test']==1) { if ($_POST['format']=="user" || $_POST['format']=="html") { $mail = new htmlMimeMail(); $mail->setSubject($subject." ".$lang['admin']['customers_send_html_sample']); $mail->setHeader('X-Mailer', 'CubeCart Bulk Mailer'); $mail->setFrom($fromName." <".$fromEmail.">"); $mail->setReturnPath($_POST['testEmail']); # $mail->setText($text); $mail->setHtml($html); $result = $mail->send(array($_POST['testEmail']), $config['mailMethod']); } if ($_POST['format']=="user" || $_POST['format']=="text") { $mail = new htmlMimeMail(); $mail->setSubject($subject." ".$lang['admin']['customers_send_text_sample']); $mail->setHeader('X-Mailer', 'CubeCart Bulk Mailer'); $mail->setFrom($fromName." <".$fromEmail.">"); $mail->setReturnPath($_POST['testEmail']); $mail->setText($text); $result = $mail->send(array($_POST['testEmail']), $config['mailMethod']); } echo "

".$lang['admin']['customers_recipient']." ".$_POST['testEmail']."

"; ?>
"; print "".$lang['admin']['customers_page']." ".($_GET['page']+1).""; for ($i=0; $isetSubject($subject); $mail->setHeader('X-Mailer', 'CubeCart Bulk Mailer'); $mail->setFrom($fromName." <".$fromEmail.">"); $mail->setReturnPath($fromEmail); if(($emailList[$i]['htmlEmail']==1 && $_POST['format']=="user") || $_POST['format']=="html") { $mail->setHtml($html); } else { $mail->setText($text); } $result = $mail->send(array($emailList[$i]['email']), $config['mailMethod']); $recipNo = $_GET['emailed']+($i+1); echo "".($recipNo).".".$emailList[$i]['firstName']." ".$emailList[$i]['lastName']." <".$emailList[$i]['email'].">\r\n"; flush(); } echo ""; ?>