View Full Version : php error

03-08-2007, 09:57 AM
anyone help me with this pls

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:\Inetpub\wwwroot\F2M_website\controller.php on line 19

03-08-2007, 10:16 AM
has this just stopped working?

are you testing this locally?

03-08-2007, 10:20 PM
yea just starting to test locally now.
first time ive tired to test, and first time ive seen the error

03-08-2007, 11:33 PM
in the same way that you have a web server running on your machine locally to allow you to serve web pages (i.e. Apache) you need a mail server to serve mail.

if you already have paid for hosting (not local) you can test your mail scripts there.

i also found this: http://www.phpeasystep.com/phptu/23.html

but i haven't tried it so i'm not sure if it will help