Hi Experts,
I've got an HTML form on my site. When the user clicks Submit, a PHP page sends a confirmation email to the user.
I have an AOL account, so I tested the script last week by sending email to myself. I probably sent 20 - 30 emails and received them in my AOL inbox.
Then suddenly a day or two ago emails sent by the PHP page stopped coming through to my AOL email. I changed the to address to my gmail account, and it came through fine. So I know the script is not the problem.
I checked all my AOL spam filters, but I'm not filtering any email. I also checked my spam box, and the emails weren't there. I got online with AOL live help, and they had me repeat those steps, and also go into advanced settings and clear personalized spam settings. None of those things helped.
So I googled for answers and tried a couple of tricks I found (-f parameter, specify a return path, etc.--see script below). So far, nothing has helped.
Here is the script I currently have, which works to send email to my gmail account, but no longer works to send email to my AOL account (although I got through just a week ago! I suspect some algorithm somewhere decided I was spamming myself and blocked my emails somehow.)
$to = "myemail@aol.com";
$subject = "Test mail";
$message = "Test email.";
$from = "myemail@aol.com";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;ch
arset=iso-
8859-1" . "\r\n";
$headers .= 'From: myemail@aol.com' . "\r\n";
$headers .= 'Reply-To: myemail@aol.com' . "\r\n";
$headers .= 'Return-Path:myemail@aol.c
om' . "\r\n";
mail($to,$subject,$message
,$headers,
"-fmyemail@aol.com");
echo "Mail Sent to " . $to;
From what I've read, AOL can be problematic when email is sent by a script. Banning AOL email is not an option, because we don't want to limit our users. And from what I've read, I don't have much hope of AOL undoing whatever they did that made my email suddenly stop getting through. If at all possible, I'd like figure out some way to tweak the script to get the mail through.
Thanks in advance!
Kathryn
Start Free Trial