Hi,
My mail() script has stopped working and now will not send emails. The "from" address is my own domain email so that is not an issue. Some fault finding has revealed it will send to my own domain email address but not anything outside of that. The code that works is below, if I change the $to address outside my domain it doesn't send. Any help would be great. Thank
<?php
$to = "noreply@mydomian.com";
$from= "noreply@mydomain.com";
$headers = "From: $from\r\n";
$subject="Message from website";
$body= "Trial of email";
mail ($to,$subject,$body,$headers);
?>
My mail() script has stopped working and now will not send emails. The "from" address is my own domain email so that is not an issue. Some fault finding has revealed it will send to my own domain email address but not anything outside of that. The code that works is below, if I change the $to address outside my domain it doesn't send. Any help would be great. Thank
<?php
$to = "noreply@mydomian.com";
$from= "noreply@mydomain.com";
$headers = "From: $from\r\n";
$subject="Message from website";
$body= "Trial of email";
mail ($to,$subject,$body,$headers);
?>