mail() function in PHP does not works in local system
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5342822/php-mail-function-on-localhost">php mail() function on localhost</a>  </p>
</blockquote>



<p>I am using php mail(). I have been working in my local system, I mean not a domain. is shows  php error as bellow</p>

<p>Error Message: 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()</p>

<p>I tried this <a href="http://pastebin.com/SNcnPi5c" rel="nofollow">http://pastebin.com/SNcnPi5c</a> to check but  does not works fine what i need to change?</p>
