SMTP problem

I get this error when I want to send email but I don’t know how i deal with it

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:\wamp\www\send_email.php on line 8

$subject="mail test at ".strftime("&#37;T",time());
$message="this is atest.";
echo $result ? 'sent':'error';

thanks in advance

thank uuu

Obvious Question Response #1: Is your server running an SMTP server on port 25?

If you are running this on your local windows machine (I’m assuming so since you are using WAMP), you probably don’t have an SMTP server installed. You need to define an outgoing SMTP address in your php.ini configuration file

Are you reeeeeeealllllly sure? (~;
if you:
start->run->cmd on the same computer PHP scripts are running:

telnet localhost 25

does it connect?