I have a small website with a feedback form hosted on a payed host server.
This is my simple php code:(i have a more complex one but it didn't work so i simplified the code to this and it still doesn't work so I'm thinking maybe its some sort of STMP problem or php.ini? <---
Code: Select all
$to = "someone@somewhere.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "info@somewhere.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";Warning: mail() [function.mail]: SMTP server response: 501 Your domain does not seem to be valid. Could not find MX record for your domain. in C:\Inetpub\vhosts\********\httpdocs\contact.php on line 70
Mail Sent.
I would appreciate any answers.
Thank you!