PHP and SMTP Problem on localhost computer

PHP

Now I'm trying to test a registration form on my computer I have PHP & Mysql and wampserver installed on my windows vista computer but when I try submiting the registration form I get the following error.

Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() 

I know to go the php.ini file but what do I add and where is it where I added it to is it here below.





[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

[SQL]

Best Answer

You must have an Sendmail-like SMTP server running on your computer so you can send through localhost. I would recomment to change the SMTP variable to your ISP's SMTP server.

Regards, Kristinn.