Hi
While sending email in php , i'm getting the following error
"
[client 125.22.241.188] PHP Parse error: parse error, unexpected T_STRING in /var/www/html/sample/sendmail.php on line 6, referer: http://125.22.241.188/sample/email.php
[Thu Aug 31 09:44:25 2006] [error] [client 125.22.241.188] File does not exist: /var/www/html/favicon.ico
"
code :
<?
$to = "munish_lcs@yahoo.com";
$from_header = "From: $from";
//if($contents != "")
{
send mail - $subject & $contents come from surfer input
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>");
}
?>
Please post your replies
Thanks in advance
-Somaskarthic