well, you try to send mail without a program to do it, you need a program like
sendmail to send mail on your windows machine, I use it on linux and works very
well...try to find sendmail for windows and confugure the php.ini on the line to
send mail...
Nilesh Parmar wrote:
> 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]
--
--------------------------------------
Romeo Manzur
Web Application Developer
iSilicom
Av. 27 de Febrero 904-A Desp 1, Centro
C.P.:86000
Villahermosa, Tabasco, Mexico
Tel.:(52)(9)3-12-4790
--------------------------------------
--
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]