Kaushan wrote:
Hi friends,
When I'm trying to use the mail() function I got the following error :
Failed to connect to mailserver at "localhost" port 25, verify your "SMTP"
and "smtp_port" setting in php.ini or use ini_set() .
I'm currently using PHP 2.0.0b1 and "localhost" (Apache) as the web server.
PHP 2???
Do I have to install a seperate STMP server?
If you're trying to send mail thru localhost, localhost needs to have a running MTA (sendmail, qmail, etc), and that MTA needs to be configured to accept mail from localhost (default for all that I know), and relay for mail sent from localhost.
... and if you not want to send from localhost, you can change your smtp-params in your php.ini.
hth SVEN
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php