Forum Moderators: coopster
Any help would be greatly appreciated.
Here is the code.
<?php
$EmailTo = "email@email.com";
$Subject = "Subject Here";
$ContactName = Trim(stripslashes($_POST['ContactName']));
$Title = Trim(stripslashes($_POST['Title']));
$Company = Trim(stripslashes($_POST['Company']));
$EMail = Trim(stripslashes($_POST['EMail']));
$Phone = Trim(stripslashes($_POST['Phone']));
$Details = Trim(stripslashes($_POST['Details']));
$Body = "";
$Body .= "Subject";
$Body .= "\r\n";
$Body .= "Contact Name: ";
$Body .= $ContactName;
$Body .= "\r\n";
$Body .= "Title: ";
$Body .= $Title;
$Body .= "\r\n";
$Body .= "Company: ";
$Body .= $Company;
$Body .= "\r\n";
$Body .= "E-Mail: ";
$Body .= $EMail;
$Body .= "\r\n";
$Body .= "Phone: ";
$Body .= $Phone;
$Body .= "\r\n";
$Body .= "Details: ";
$Body .= $Details;
$Body .= "\r\n";
$success = mail($EmailTo, $Subject, $Body, "From: <$ContactName>");
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=sent.html\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
?>