// $company_mail = "raheem@webcompanyindia.com";
$company_mail = "nazeer@redingtonme.com";
if(isset($_POST['submit'])){
$sender_name = $_POST['Name'];
$theEmail = $_POST['theEmail'];
$Ccode = $_POST['Ccode'];
$Acode = $_POST['Acode'];
$Tnumber = $_POST['Tnumber'];
$Company = $_POST['Company'];
$Address = $_POST['Address'];
$S_city = $_POST['S_city'];
$Pin = $_POST['Pin'];
$Country = $_POST['Country'];
$Description = $_POST['Description'];
$to = $company_mail;
$subject = "Enquiry from website";
$headers="Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = 'Sender Name : ' . $sender_name . '
' .
'Email : ' . $theEmail . '
' .
'Phone : ' . $Ccode . $Acode . $Tnumber .'
' .
'Company : ' . $Company . '
' .
'Address : ' . $Address . '
' .
'Address1 : ' . $S_city . '
' .
'Zip code : ' . $Pin . '
' .
'Country : ' . $Country . '
' .
'Message : ' . $Description;
if(mail($to, $subject, $message, $headers))
{
header("Location: contact.php?status=success");
}
else {
header("Location: contact.php?status=failed");
}
}
?>
|
||||||||||||
|