PDA

View Full Version : php error


chriskq
03-08-2007, 10: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

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

are you testing this locally?

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

lux
03-09-2007, 12:33 AM
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

regards