title: I need to send email using PHP, How can I install smtp server on my PC( windows XP)?
body: <p>I have installed apache-5.4.2, PHP-5.4.11 and Mysql-5.5.29 . I want to send mail using php. I have realized that I need a SMTP server on my PC in order to send mails. Can anyone please tell me the details on how to install a SMTP server to send mail. Please give me details on it as I am new to this. Just FYI I am using the below code in PHP.  Thanks.</p>
  
  <pre><code>&lt;?php
  $to = "xyz@gmail.com";
  $subject = "Test mail";
  $message = "Hello! This is a simple email message.";
  $from = "abc@gmail.com";
  $headers = "From:" . $from;
  mail($to,$subject,$message,$headers);
  echo "Mail Sent.";
  ?&gt; 
  </code></pre>