mail function and php.ini file

From: Date: Wed, 27 Aug 2003 13:11:51 +0000
Subject: mail function and php.ini file
Groups: php.general 
Request: Send a blank email to php-general+get-160898@lists.php.net to get a copy of this message
Hi guys I am new to the mail function. I have looked in the manual however there isnt much about the mail function. I am trying to use the function and get returned this error: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\program files\apache group\apache\htdocs\bookabstract\sendrequest.php on line 162 anyone have any idea what settings I have to set in the php.ini file? these are the only setting s that I have found to be relevant: [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = me@localhost.com I am running windows 2000, any ideas what could be wrong? could it be a network problem? Thanx in advance Angelo

« previous php.general (#160898) next »