title: mail() function PHP failed sending to email
body: <p>I have a mail function in my PHP file . When I excecute the file it doesn't give me any error messages but the email is not sent either. I have installed and started the Mercury Mail.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$result = mysql_query("select email from user
                          where username='$username'");
  $email = mysql_result($result, 0, "email");
  $from = "another_emailgmail.com";
  $mesg = "Your password have been changed";
  
  
  
  if (mail($email, "Login information", $mesg, $from))
      return true;
  </code></pre>
  
  <p>I have looking in another similar post but it seems they have not installed Mercury Mail and they dont't have the same problem.</p>