Mail() Problem

waterway

New Member
Prime Account
Messages
3
Reaction score
0
Points
1
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);
?>
 

waterway

New Member
Prime Account
Messages
3
Reaction score
0
Points
1
Hi guys at X10.
I'm still not able to solve this problem. I've also noticed that if I use webmail (Squirrel, Roundcube etc) to send an email to address outside of "noreply@mydomain.com" or "enquiry@mydomain.com" it is not received although it does appear in the sent items of the webmail. Any help would be great.

Thanks

Phil
 
Last edited:

waterway

New Member
Prime Account
Messages
3
Reaction score
0
Points
1
Hi Bdistler,
Thanks I'll wait till that's fixed and try again.
 
Top