|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/TEST/www/../../AB/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
$message='<meta charset="utf8" /><table style="margin:0 auto; width:80%; font-family:Arial, Helvetica, sans-serif; border:1px solid #3d3d3f;">
<tr>
<td colspan="2" style="height: 30px; background:#5c5c5c"><span style="margin-left:10px; font-weight:bold; color:white;">Demande de rappel du site</span></td>
</tr>
<tr>
<td colspan="2"><h2 style="font-size:14px;">Informations générales :</h2></td>
</tr>
<tr>
<td valign="top">';
if(isset($_POST['nom_rappel'])) $message .='<p style="margin:0; padding:0;font-size:12px;">Nom : '.$_POST["nom_rappel"].'</p>';
if(isset($_POST['tel_rappel'])) $message .='<p style="margin:0; padding:0;font-size:12px;">Téléphone : '.$_POST["tel_rappel"].'</p>';
if(isset($_POST['cp_rappel'])) $message .='<p style="margin:0; padding:0;font-size:12px;">Code postal : '.$_POST["cp_rappel"].'</p>';
$message .='
</td>
</tr>
<tr>
<td colspan="2" style="height: 30px; background:#5c5c5c"><span style="margin-left:10px; font-size:12px;font-weight:bold; color:white;">via le formulaire de contact de menage et co</span></td>
</tr>
</table>';
?>
<?php
// *** A configurer
$to = $_POST["maildestinataire"];
$emailccbb = "pascal@clicclicbangbang.com";
$from = "Site web Menage et compagnie<contact@menage-et-compagnie.com>"; // adresse MAIL OVH liée à ton hébergement.
$lastname= $_POST["nom_rappel"];
$JOUR = date("Y-m-d");
$HEURE = date("H:i");
$Subject = "Email provenant du formulaire de contact de Menage et compagnie - $JOUR $HEURE";
// *** Laisser tel quel
$mail_Data = "";
$mail_Data .= "<html> \n";
$mail_Data .= "<head> \n";
$mail_Data .= "<title> $Subject </title> \n";
$mail_Data .= "</head> \n";
$mail_Data .= "<body> \n";
$mail_Data .= $message;
$mail_Data .= "</body> \n";
$mail_Data .= "</HTML> \n";
$headers = "MIME-Version: 1.0 \n";
$headers .= "Content-type: text/html; charset=utf-8 \n";
$headers .= "From: $from \n";
$headers .= 'BCc:' . $emailccbb. "\r\n"; // Carbon copy to Sender
$headers .= "Reply-To: ".$lastname."<contact@menage-et-compagnie.com> \n";
$headers .= "Disposition-Notification-To: $from \n";
// Message de Priorité haute
// -------------------------
$headers .= "X-Priority: 1 \n";
$headers .= "X-MSMail-Priority: High \n";
$CR_Mail = TRUE;
$CR_Mail = @mail ($to, $Subject, $mail_Data, $headers);
echo $CR_Mail;
?>