ÿØÿà 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/amper-formance.fr/rappel/ |
Upload File : |
<?php
require "phpmailer/class.phpmailer.php";
$envoi= '0';
$email_rappel = $_POST['email_rappel'];
$company= $_POST['company'];
if(isset($_POST['nom'])) {
if ((!empty($_POST['nom'])) AND (!empty($_POST['telephone'])) ) {
$mail_destinataire = $email_rappel; //=====Mail client
$mail = new PHPMailer();
$mail->IsMail();
$msg=
'Vous avez reçu une demande de rappel depuis votre site : '.$company.'<br /><br />
<b>Nom / Prénom :</b> ' . $_POST['nom'].'<br />
<b>Téléphone :</b> ' . $_POST['telephone'];
$mail->AddReplyTo($email_rappel, $company);
$mail->AddAddress($email_rappel);
$mail->SetFrom($email_rappel, $company);
$mail->Subject = "Demande de rappel depuis votre site ";
$mail->MsgHTML($msg);
if($mail->Send()) {
$envoi= '1';
} else {
$envoi= '0';
}
}
}
header('Location: ' . $_SERVER['HTTP_REFERER'] . '');
?>