0

I am trying to send an email to an address that is something@icloud.com via the mail function in PHP.

I know that this mail function works because if I add a BCC to a different email I can see that the recipient of the email is there. The emails are also received when sent to different recipients. But both iCloud emails that have been tried do not receive the email.

Is there a known issue with icloud accepting PHP emails? I have seen some things online with this known but not a great deal of information. It would be useful if someone could shed some light on this? And if there is a fix/workaround?

a.cayzer
  • 289
  • 4
  • 22
  • I don't think this is a duplicate as it is working for all domains tried except icloud. It seems to be a problem with sending just to icloud.com email addresses – a.cayzer Feb 01 '19 at 20:32
  • icloud has no idea you used PHP to generate the email. The email will appear to come from whatever mailserver PHP's mail() command sent the data to. Your PHP config will be able to tell you, hopefully. More likely the email is badly constructed, or comes from an untrusted source and thus has been classified as spam, or it looks like it's spoofing the sender, or perhaps its contents make it look like spam, or some combination of all those (and more). If you're lucky it might be in the junk mail folder of the icloud account.If you're unlucky Apple's servers might have just rejected it completely – ADyson Feb 01 '19 at 20:32
  • 1
    @a.norman Please take the time to read the entirety of the answer on the linked question. – Patrick Q Feb 01 '19 at 20:33
  • 1
    the answer is simple: do not spoof sender addresses. – Martin Zeitler Feb 01 '19 at 20:34
  • 1
    You could try using the following PHP component https://github.com/PHPMailer/PHPMailer/issues/1140 – estinamir Feb 01 '19 at 20:35

0 Answers0