PHP Mail Function
<p>Is it possible to send a mail in PHP without any external packages or tools? If so, is there </p>

<p>any requirement to configure the php.ini file?</p>

<p>Its as follows:</p>

<pre><code>$to = $row-&gt;EMail_ID;
$subject = "Reset your password";
$body = "Hi ".$row-&gt;Username.", \n\t\t\tA request to reset your  password was received from you. \n\n\n";
$headers = "From: admin@admin.com\r\n"."X-Mailer: php/";
mail($to, $subject, $body, $headers); 
</code></pre>

<p>The error i get:</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() in F:\wamp\www\pwd.php on line 20
</code></pre>
