dps57553 2016-08-20 17:16
浏览 304

未从联系表单收到iCloud电子邮件

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'); 
  • 写回答

1条回答 默认 最新

  • dpb35161 2016-08-21 06:20
    关注

    Petro,

    Try this and see if you can see if it gives you any more useful info.

    telnet yourmailhost 25
    

    You will see the prompts S, you need to type the responses C.

    S: 220 smtp2go.com ESMTP Exim
    C: HELO mydomain.com
    S: 250 Hello mydomain.com
    C: MAIL FROM:<sender@mydomain.com>
    S: 250 Ok
    C: RCPT TO:<recipient@anotherdomain.com>
    S: 250 Accepted
    C: DATA
    S: 354 Enter message, ending with "." on a line by itself
    C: Subject: communication
    C: From: sender@mydomain.com
    C: To: recipient@anotherdomain.com
    C: 
    C: Bonjour,
    C: Do you speak English?
    C: Ciao.
    C: . 
    S: 250 OK
    C: QUIT
    S: 221 www.sample.com closing connection
    

    Did you try a different sender address too; it maybe their mail host is verifying the sender address and isn't liking the reply it gets?

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 MATLAB动图问题
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名