I would like to know if anyone has come across this problem. I have a contact form and php script that I have used many times and it works fine.
However, I need to include an Apple email as a recipient (.icloud.com or .me.com accounts). On my localhost server, the form always delivers all of the emails but on my live website, they are delivered to all addresses EXCEPT the Apple ones. I have tested this with at least 10 different non-Apple email addresses and it works without fail but Apple ones just won’t work. I have tried two different Apple accounts and the emails don't arrive.
My web hosting service tells me from their logs that they are delivered. So where could they go? Does Apple somehow filter them out as junk? (they don’t arrive in the spam/junk folder by the way). I’ve tried to contact Apple to establish if by any chance they are blacklisting the mail server concerned but getting through to the appropriate technical support seems impossible so any ideas would be most appreciated.
Here is the relevant code from the php:
$email_to = "enquiry@mywebsite.co.uk, myname@testmail.co.uk, myname@hotmail.com, myname@icloud.com, myname@me.com";
$headers = 'From: '."enquiry@mywebsite.co.uk"."
".
$headers .= 'Reply-To: '."donotreply@mywebsite.co.uk"."
" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
header('Location: http://www.mywebsite.co.uk/contact_thankyou.html');