0

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 = "[email protected]";
    $to = "[email protected]";
    $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?

Synchro
  • 35,538
  • 15
  • 81
  • 104
Amiyar
  • 83
  • 1
  • 12

0 Answers0