I am working on a web application, and am having trouble with the most basic of functions, sending an email. My email code does work, I can send to gmail, yahoo, and my work email address all day long. The problem is that when ever the web application attempts to send to an Apple iCloud email address, the email never makes it. I've checked the email server logs, and it does send, which would lead me to believe that Apple is somehow blocking my emails before they ever reach the user.
System Setup
Domain name purchased through GoDaddy. I set up a DNS A record to forward all traffic that hits that domain name to our virtual server, which is hosted at 1and1
The virtual server is a windows 2008 server. I set it up as an email server that actually sends the email itself, as opposed to relaying through GoDaddy. Note: on the above, all i did was add a *. entry in the iis email configuration
Below is my PHP test code, that sends to every where with no problems, except iCloud.
mail("person@me.com", "test", "this is a plain test", 'From: Site <no- reply@domainname.com>');
Any help would be greatly appreciated!
Had a reverse DNS entry added for our server's IP address, and got the server's IP address taken off of Apple's blacklist.