PHP - Sending Email
$to = "miked@newmediaplugin.co.uk";
$from_header = "From: $from";
if($contents != "")
{
mail($to, $subject, $contents, $from_header);
// redirect back to url visitor came from
header("Location: $HTTP_REFERER");
}
else
{
print("<HTML><BODY>Error, no comments were submitted!");
print("</BODY></HTML>");
}
COMMENTS
|