Send email from php
<p>I am designing a PHP page to send an email. An error is occurring. Please check my code carefully and let me know the error in my code. </p>

<p>This is the output which is generated when i run my program:</p>

<pre><code>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()
</code></pre>

<p>so pls help me to set smtp configuration.</p>
