Hi
I have installed php4 with apache onto my windows 98 machine .I am trying
to send an email using the mail() function . When i run the following piece
of code i get a warning .Can anyone please help me figure what has gone
wrong and suggest me with what to do.
****************************
This is the code!!
<?php
$mailto = "[EMAIL PROTECTED];
$mailsub = "this is a php mail() function";
$body = " i hope this works";
if (mail($mailto ,$mailsub, $body))
echo("successfully sent an email to $mailto");
else
echo("failed to send the email \"$mailsub\" to $mailto");
?>
*************************************
the following is the warining i get.
Warning: Server Error in c:\program files\apache
group\apache\htdocs\nilesh\mail.php on line 6
failed to send the email "this is a php mail() function" to
[EMAIL PROTECTED]
********************************************
Hoping someone can help me in this regard
bye and thanx in advance
Nilesh Parmar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]