<?php
$mail_recipient = "Jeremywoods@xtra.co.nz";
$mail_subject = "Enquiries";
$Name = Trim(stripslashes($_REQUEST['Name']));
$Email = Trim(stripslashes($_REQUEST['Email']));
$Company = Trim(stripslashes($_REQUEST['Company']));
$Address = Trim(stripslashes($_REQUEST['Address']));
$Phone = Trim(stripslashes($_REQUEST['Phone']));
$Comments = Trim(stripslashes($_REQUEST['Comments']));
$Body = "";
$Body .= $Name;
$Body .= $Email;
$Body .= $Company;
$Body .= $Address;
$Body .= $Phone;
$Body .= $Comments;
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// send email
$success = mail($mail_recipient, $mail_subject, $Body, $headers);
if($success==true)
echo "Your mail has been Sent Successfully";
else
echo "Your mail has Not Sent Successfully";
?>
Bookmarks