Server IP : 164.52.202.56 / Your IP : 216.73.217.7 Web Server : Apache System : Linux e2e-70-56.ssdcloudindia.net 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : rubyaromatics ( 1052) PHP Version : 7.2.34 Directory (0755) : /home/rubyaromatics/public_html/controller/pro/../app/ |
[ Home ] | [ Terminal ] | [ Upload File ] |
---|
<?php /* * A Design by W3layouts Author: W3layouts Author URL: http://w3layouts.com License: Creative Commons Attribution 3.0 Unported License URL: http://creativecommons.org/licenses/by/3.0/ * */ $userName=$_REQUEST['userName']; $userEmail=$_REQUEST['userEmail']; $userPhone=$_REQUEST['userPhone']; $userMsg=$_REQUEST['userMsg']; $subject = "Message from ".$userName; $message = '<html><head><title>'.$subject.'</title></head><body><table><tr><td>Email id : </td><td> '.$userEmail.'</td></tr> <tr><td>Phone No : </td><td> '.$userPhone.'</td></tr><tr><td>Name : </td><td> '.$userName.'</td></tr><tr><td>Says : </td><td> '.$userMsg.'</td> </tr></table></body></html>'; //$message = "Email id : ".$userEmail. "\r\nPhone No : ".$userPhone."\r\nName : ".$userName."\r\nSays : ".$userMsg; $to=$email_id; $headers = "From: " . strip_tags($userEmail) . "\r\n"; $headers .= "Reply-To: ". strip_tags($userEmail) . "\r\n"; //$headers .= "CC: susan@example.com\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; if(!mail($to, $subject, $message, $headers)){ $mail_status='no'; header("Location: contact.html"); exit(); }else{ $mail_status='yes'; header("Location: contact.html"); exit(); } ?>