> i am trying to send mail from a script, but i receive these error message: > > 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:\apacheserver\apache\htdocs\work-net\serial.php on > line 295 > > I have PHP + Apache + MySql and work in "localhost" on a win98 machine. how > can i set it?
Have you tried doing what the error message suggests? Setting the SMTP value in php.ini or through ini_set()? I assume you're coming through some ISP and do not have your own SMTP server running, so you'd set the SMTP settting in php.ini to the SMTP server of your ISP. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php