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?

    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?