Below script was working fine till when i changed the message to "domain.org". Now its showing success message but im not receiving any emails even not in spam. If I change the message to "domain.com" its working fine.
$from = "info@domain.com";
$to = "testmail@gmail.com";
$subject = "PHP Mail Test script";
$message = "domain.org";
$headers = "From:". $from;
$mail = @mail($to,$subject,$message, $headers);
if($mail){
echo "Test email sent";
}else{
echo "Mail not sent";
}
Any idea to solve this?