I am able to send emails from my Mercury mail server to my Gmail account, but when I try to it using the mail()
function in PHP, it doesn't work! Why?
<?php
if(mail('XYZ@gmail.com','NICE','OK'))
{
echo "success";
}
?>
It shows "Success" in my browser but there's no mail in my mailbox.