Why mail() not sending email?
<p>Why the below code not sending mail to me? What is the error?</p>

<pre><code>&lt;?php
if(isset($_POST['name'])){
    $msg="Name: ".$_POST['name']."\n Email: ".$_POST['email']."\n Address: ".$_POST['city']."\n Phone: ".$_POST['phone'];
    mail('sganake@gmail.com', 'New Trial Request', $msg);
    echo '&lt;h2 align="center" style="color:green"&gt;Thank you for your message.&lt;/h2&gt;';

} ?&gt;
</code></pre>

<p>No error I got. Just I have not received my email at inbox. This is running on IIS Server.</p>
