How to set up php to send email (via smtp) in Vista

I was searching but I found only setup for Linux :http://email.about.com/cs/phpemailtips/qt/et022802.htm
I am running Vista Ultimate, and would like to use SMTP
to send a test email from localhost.

In php.ini, should I set

;sendmail_path =
to
sendmail_path = “localhost”
??? :sen:

 
 
<?php
$to      = 'root@localhost.com';
$subject = 'the subject';
$message = 'hello world, test email ';
$headers = 'From: someone@example.com' . "
" .
    'Reply-To: someone@example.com' . "
" ;
mail($to, $subject, $message, $headers);
?>