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.
Here is my 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;
I have looking in another similar post but it seems they have not installed Mercury Mail and they dont't have the same problem.