';
//$realname = base64_encode($_POST['realname']);
//$message = $_POST['message'];
$mail = new PHPMailer;
if ($_POST["sssl"] == "true"){
$mail->SMTPSecure = true;
$mail->SMTPAutoTLS = true;
}else{
$mail->SMTPSecure = 'none';
}
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = $shost; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = $suser; // SMTP username
$mail->Password = $spass; // SMTP password
// Enable TLS encryption, `ssl` also accepted
$mail->Port = $sport; // TCP port to connect to
$mail->SMTPDebug = 4;
$maillist=explode("\r\n", $emailList);
$n=count($maillist);
$x =1;
foreach ($maillist as $email ) {
print '
['.$x.'/'.$n.']
'.$email.'
';
if(!ninjaxMailCheck($email)) {
print '
Incorrect Email
';
print "
\r\n";
}
else {
$mail = new PHPMailer;
$mail->setFrom(ninjaxClear($senderEmail,$email),ninjaxClear($senderName,$email));
$mail->addReplyTo(ninjaxClear($replyTo,$email));
$mail->addAddress($email);
$mail->Subject = ninjaxClear($subject,$email);
$strss = ninjaxClear($messageLetter,$email);
$mail->Body = ninjaxClear($messageLetter,$email);
$mail->CharSet = $encode;
for($i=0; $i
AddAttachment($_FILES['attachment']['tmp_name'][$i],$_FILES['attachment']['name'][$i]);
}
}
if($messageType==1){$mail->IsHTML(true);}
else {$mail->IsHTML(false);}
if (!$mail->send()) {
echo ''.$mail->ErrorInfo.'
';
}
else {
echo 'SENT
';
}
print "
\r\n";
}
$x++;
for($k = 0; $k < 40000; $k++) {echo ' ';}
}
print '
';
die();
}
//no smtp
print ' ';
$maillist=explode("\r\n", $emailList);
$n=count($maillist);
$x =1;
foreach ($maillist as $email ) {
print '
['.$x.'/'.$n.']
'.$email.'
';
if(!ninjaxMailCheck($email)) {
print '
Incorrect Email
';
print "
\r\n";
}
else {
$mail = new PHPMailer;
$mail->setFrom(ninjaxClear($senderEmail,$email),ninjaxClear($senderName,$email));
$mail->addReplyTo(ninjaxClear($replyTo,$email));
$mail->addAddress($email);
$mail->Subject = ninjaxClear($subject,$email);
$mail->Body = ninjaxClear($messageLetter,$email);
$mail->CharSet = $encode;
for($i=0; $i
AddAttachment($_FILES['attachment']['tmp_name'][$i],$_FILES['attachment']['name'][$i]);
}
}
if($messageType==1){$mail->IsHTML(true);}
else {$mail->IsHTML(false);}
if (!$mail->send()) {
echo ''.$mail->ErrorInfo.'
';
}
else {
echo 'SENT
';
}
print "
\r\n";
}
$x++;
for($k = 0; $k < 40000; $k++) {echo ' ';}
}
}
print '