I hope someone can help.
I recently experience an issue with my php mailer code where it just stopped sending. I ran some trouble shooting and found the issue to be that whenever our domain was in the email body it wouldn't send however if I put a different domain in there then it would send.
Below is the code I am using but if I change the message body link to https://www.megacamps.net then the email doesn't send. I am at a whits end with this as the hosting company are saying its the code yet this is the test code they put on to test the mail function was working.
<?php
$to = "xxxx@xxxxxxxxxxx.co.uk";
$subject = "Test mail test";
$message = "Hello! This is a simple email message from <a href='https://www.megacamps.net'>hello</a> s2.";
$from = "xxxxxx@megacamps.net";
$headers = "From: Test" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
echo "<br>";
print date("m/d/y G.i:s<br>", time());
print "Today is ";
print date("j of F Y, \a\\t g.i a", time());
?>
If I change the href to https://www.mmmegacamps.net or any other domain it works??
Any suggestions to what i can return to my hosting company with so it can be fixed?