hey guys,

I have a basic register/activate page that I am making, basically you register on a html form, an email is sent to the user with an activation link.

I have it working just fine, when i register my yahoo email address or any other address except for aol addresses, i think aol is blocking it as spam because of bad headers or something?

my code is:

$headers  = "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$headers .= "From: my site";  


mail($email, "Account Activation", "There would be a link below: \n [url]http://www.mysite.com/activate.php?email=[/url]$email&conf=$conf \n Thanks, mysite.com", $headers);

I have tried searching, although I found alot on the mail() i could not find out anything that helped, I also did not catch anything useful in the manual. So if anyone could kindly point me in the right direction it would be very much appreciated.

Oh, and also, the "\n" do not seem to work, the email comes to me in plain text format all on one line, is the html header set incorrectly?

Thanks guys,
gp

    can anyone please help?

    I use the server to send email via outlook express to aol email addresses all the time, and it works just fine.

    if i can not get this to work, i do not see any way of confirming the email address for a registration.

      Of course \n has no effect. You have declared the content type to be HTML, and newlines are not meaningful in HTML. Use a P or BR tag.

      Your HTML looks a mess.

      You would be more likely to get your mail past AOL's filters if you generate either plain text or valid multipart/alternative mail.

        thanks,

        any chance you could post how I would need to change the headers to just plain text?

        is this right?

        $headers  = "MIME-Version: 1.0\r\n"; 
        
        $headers .= "Content-type: text; charset=iso-8859-1\r\n"; 
        
        $headers .= "From: my site";   
        
        $subject="hello";
        $messagebody="go to mysite.com/activate."
        
        
        mail($email, $subject, $messagebody, $headers);
        
        

        I just tried the above code, and still no email to aol address! 🙁

          So Im an idiot, emails I send from outlook to AOL addresses through my server do not arrive either. I submitted a help ticket and got this response

          "Hello Gordon,

          Typically there is nothing we can do when it comes to AOL blocking mail. The block is usually taken off in 12-24hrs from the time that it is put on.

          What we will do is wait and see if it is taken off by this time tomorrow. If it is not taken off, let us know, and we will see what we can do to resolve this for you.

          Thanks."

          What do you think about that? Anyone have any idea as to what I should do?

          gp

            a year later

            You should go to AOL.com and click on Email policy link at the bottom. Click on the link on the troubleshooting link on the left. Click on the reversedns check. I have the same problem. My host is not providing my server with a reversedns and I can't fix it. I am stuck with no email to any AOHELL account.

              Thanks for the reply, that post is over a year old tho 🙂

              Reverse dns works wonders.

              gp

                Write a Reply...