Advertisement

08.16.2008 at 10:22PM PDT, ID: 23654274 | Points: 125
[x]
Attachment Details

Need help getting PHP script to send email to AOL account

Asked by KathrynGZ in PHP Scripting Language

Tags:

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;charset=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.com' . "\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!

KathrynStart Free Trial
[+][-]08.16.2008 at 11:24PM PDT, ID: 22246282

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.17.2008 at 08:03AM PDT, ID: 22247136

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.17.2008 at 01:13PM PDT, ID: 22248072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.29.2008 at 07:15AM PDT, ID: 22596594

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.23.2008 at 09:53AM PDT, ID: 22788206

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628