Hi, I am having issues with getting emails to AOL addresses using PHPs mail() fun ction. And when I say issues I mean that none of the emails are getting through. At all. Not even to the spam folder. I have searched and found people who have had similar problems but as far as I can tell I'm doing everything right. I tested the reverse dns lookup which aol seems to require, I made sure the IP address appears in the email header, I tried setting the Return-Path to something other than apache@... (didnt change). Nothing made a difference. AOL just doesnt like my emails and wont even acknowledge their existence. HEEEELLP!!! (please)
Have you checked your mail logs? Logs are usually in /var/log/exim or /var/log/mail Logs will let you know what happen to your mails
Yeah, AOL is a PITA. Anyway, I so happen to know the fix. In your PHP.ini file there's a server e-mail default. I forgot the exact name of the variable. For AOL to accept your mail, the FROM, RETURN-TO AND this PHP.ini send mail default need to be the exact same. But even when you do that, you are probably already on their blacklist.
WOOOOOOOOHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!! By which I mean thanks, its sorted now. After alot of faffing about I have worked out the following solution (with a little help!) ini_set('sendmail_from', 'info@mysite.com'); mail("somebody@aol.com", "A test email", "Yes this is a test", "FROM: ", '-r '); And thats basically it. I am now officially dead chuffed and am off to celebrate a day that hasnt actually been a complete waste! Cheers guys
Ok now AOL is just taking the p*** I set up my own AOL account and that receives the newsletter emails just fine. however, the person I am doing this for has their own AOL email address and they dont receive the emails fine. From what I can tell they are receiving all the headers etc as part of the body of the email. so all the crap about content type etc etc is on show. I'm starting to think that the easiest way to solve this may be to track down every single person with an aol address manually and just hand deliver them a paper copy of the damn newsletter!