Do you have anything for sendmail_path?
When I had both SMTP and sendmail_path are set, mail() always failed on
Linux/Apache/PHP.
It may be the same under windows.

Make sure SMTP host is up also.
(telnet your.mail.host 80)

Regards,
--
Yasuo Ohgaki


""Guillaume ARNAUD"" <[EMAIL PROTECTED]> wrote in message
003701c0c1b6$76327200$[EMAIL PROTECTED]">news:003701c0c1b6$76327200$[EMAIL PROTECTED]...

Hi, I am a new user to PHP and Would like to use PHP to send mail.
I use the following script:
<?php
 $recipient = "[EMAIL PROTECTED]";
 $subject = "some subject";
 $mail_cont = "yea yea yea";
 $mail_headers = "From: our web site\n";

 if(mail($recipient,$subject,$mail_cont,$mail_headers))
  print("Success!");
 else
  print("Sorry, try again.");
?>

and I get

Warning: Unknown error in c:/easyphp/www/index3.php on line 7
Sorry, try again.

My php.ini file include:

[mail function]
SMTP=smtp.tele2.pl ;for win32 only
[EMAIL PROTECTED] ;for win32 only

Can u help?

THanx




-- 
PHP Windows 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]

Reply via email to