|
Server : Apache System : Linux p3plzcpnl507073.prod.phx3.secureserver.net 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : swg98tjyzel1 ( 5098476) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/swg98tjyzel1/public_html/ |
Upload File : |
<?php
$name=$_POST['name'];
$company_name=$_POST['company_name'];
$phone_no=$_POST['phone_no'];
$email=$_POST['email'];
$services=$_POST['services'];
$buget=$_POST['buget'];
$message_dtat=$_POST['message'];
$services_for=$_POST['services_for'];
$to = 'bibhudatta.268.purohit@gmail.com';
$subject = "New Inquiry for ".$services_for."";
$message = "<html>
<head>
<title>New Inquiry for ".$services_for."</title>
</head>
<body>
<h3><b>New Inquiry for ".$services_for."!</b></h3>
<table>
<tr>
<td>Name</td>: <td>".$name."</td>
</tr>
<tr>
<td>Company Name</td>: <td>".$company_name."</td>
</tr>
<tr>
<td>Phone No</td>: <td>".$phone_no."</td>
</tr>
<tr>
<td>Email Id</td>: <td>".$email."</td>
</tr>
<tr>
<td>Buget</td>: <td>".$buget."</td>
</tr>
<tr>
<td>Services</td>: <td>".$services."</td>
</tr>
<tr>
<td>Message</td>: <td>".$message_dtat."</td>
</tr>
</table>
</body>
</html>";
$headers[] = 'MIME-Version: 1.0';
$headers[] = 'Content-type: text/html; charset=iso-8859-1';
$headers[] = "From: New Inquiry From <".$email.">";
$result=mail($to, $subject, $message, implode("\r\n", $headers));
if($result){
echo 'yes';
}else{
echo 'no';
}
?>