Hi guys.. I am new here, and also with PHP... I need a little hand here...
I have this code a friend made for a form... What I need to do is get the information in the email as a table, with labels in the first column, and variables output in the second... This is the code that sends the info to the mailbox
<?
}
if ($op==submit){
$tBody="Name: " . $tName;
$tBody.="Company: " . $tComp;
$tBody.="Home Phone: " . $tHome_Phone;
$tBody.="Work PHone: " . $tWork_Phone;
$tBody.="Email: " . $tEMail;
$headers .= "From: Euro Transport Site <contacto@domain.com>\n";
$headers .= "X-Sender: <contacto@domain.com>\n";
//$headers .= "X-Mailer: PHP\n"; //mailer
$headers .= "X-Priority: 1\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <contacto@domain.com>\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
mail("user@domain.com", "Cube Sheet", $tBody, $headers);
echo "<div align=\"center\"><br /><br /><br /><br /><br />";
echo "Thank you. Your request has been received succesfully.<br />One of our sales agents will contact you as soon as
possible.</div>";
}
?>
Anyone can help me??? Thanks in advance