1Server IP : 217.21.90.164 / Your IP : 216.73.216.51 Web Server : LiteSpeed System : Linux in-mum-web840.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u367232671 ( 367232671) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u367232671/public_html/dbh/appointmentBooking/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if (!isset($_REQUEST)) { header("Location:../../index.php?MSG=Error 404&MSG_C=danger&MSG_H=Fail"); } else { $to = "zeropaindentist@gmail.com"; $subject = "Mail Form Website"; $name = $_REQUEST['name']; $email = $_REQUEST['email']; $number = $_REQUEST['number']; $treat = $_REQUEST['treat']; $msg = $_REQUEST['msg']; $message = " <html> <head> <title>HTML email</title> </head> <body> <table> <tr> <td><b>Name</b></td> <td><b>:</b></td> <td>$name</td> </tr> <tr> <td><b>Email</b></td> <td><b>:</b></td> <td>$email</td> </tr> <tr> <td><b>Number</b></td> <td><b>:</b></td> <td>$number</td> </tr> <tr> <td><b>Tretment</b></td> <td><b>:</b></td> <td>$treat</td> </tr> <tr> <td><b>Message</b></td> <td><b>:</b></td> <td>$msg</td> </tr> </table> </body> </html> "; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: noreply@zeropaindentist.com' . "\r\n"; // $headers .= 'Cc: myboss@example.com' . "\r\n"; if (mail($to, $subject, $message, $headers)) { header("Location:../../index.php?MSG=Thank you for Contacting us we will contact you shortly&MSG_C=success&MSG_H=Massage send Successfull"); } else { header("Location:../../index.php?MSG=Unable to Send the contact us on 99204 33775 or info@zeropaindentist.com&MSG_C=danger&MSG_H=Fail to send Mail"); } }