Hi I'm trying to run the following code on a clients server as a form for quotes and whatnot.....
<?
$today = date("M d, Y");
$recipient = "evan@trendmm.com";
$subject = "Email Form Test";
$N = $_REQUEST['name'];
$A = $_REQUEST['address'];
$C = $_REQUEST['city'];
$S = $_REQUEST['state'];
$Z = $_REQUEST['zip'];
$P = $_REQUEST['phone'];
$E = $_REQUEST['email'];
$CO = $_REQUEST['comments'];
$forminfo =
"Name: $N\n
Address: $A\n
City: $C\n
State: $S\n
Zip: $Z\n
Phone: $P\n
Email: $E\n
Comments: $CO\n
Form Submitted: $today\n\n";
// $formsend = mail("$recipient", "$subject", "$forminfo", "From: $E\r\n", "Reply-to:$E\r\n");
mail("$recipient", "$subject", "$forminfo", "From: $E\r\n", "Reply-to:$E\r\n");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Email Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td> <p align="left">Thank you. You have successfully submitted the following information:</p>
<p><? echo nl2br($forminfo); ?></p>
</td>
</tr>
</table>
</body>
</html>
When using the form it prints out the information people have entered to the screen correctly but it just doesn't send it to my email. Does anyone know of what's wrong here?
I'd appreciate the help.
_ Evan