That's not always true.

I just sent mail using php to my AOL account, and it worked. The smtp 
mail server doesn't have a reverse dns lookup. 

His problem might be that the SMTP server he is using my be on the black 


This will cause a ton of problems.

It took me 3 weeks to get off that list!!!


Instead of sending it like this...

mail($email, "application submitted", $message, "From: 

Do something like this...

$text = stripslashes($text);
$subject = stripslashes($sub);

        $header = "From: $From\nReply-To: $From\n";
        $header .= "Cc: $cc\n";
        $header .= "MIME-Version: 1.0\n";
        $header .= "Content-Type: text/plain\n";
        $header .= "Content-Transfer-Encoding: 8bnoit\n\n";
        $header .= "$text\n";

mail($To, $subject, "", $header);

I alwasy like working with strings....


-----Original Message-----
From: RJameson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 9:12 AM
To: php-db
Subject: RE: [PHP-DB] Re: mail() function and AOL users

I'm quite sure it's not a problem with the mail function. It's probably
the reverse dns configuration on your SMTP/sendmail server. AOL &
Verizon have been two real sticklers for that.

If you know the IP address that your server is sending the email from
you can use this:


To check the revers dns resolution. You may be surprised.

<>< Ryan 

-----Original Message-----
From: Manuel Lemos [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 18, 2004 10:28 PM
Subject: [PHP-DB] Re: mail() function and AOL users


On 12/12/2003 04:34 AM, Matt Perry wrote:
> I use the following php mail function in an online applicaiton
> mail($email, "application submitted", $message, "From: 
> This function does not always work when I modify $message.  I have 
> checked for null values for $message already but this does not seem to

> be the problem.
> I am trying to develop some sort of pattern of when this function 
> works and when it does not.
> The only essential difference between the values I pass in for message

> is the one that does not always work includes a link.  Apparently 
> anyone useing AOL email is particularly vulnerable to this problem.
> Is it likely that AOL and other mail servers sometimes block any email

> from a web site if it has a link in the main body?  Or should I not be

> useing mail() in this manner to begin with?

Maybe you are not generating the message headers and body properly. 
Without seeing the code that you use to define $message, it is hard to

I just suggest that you try this class to properly compose and send your



Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP

PHP Reviews - Reviews of PHP books and other products

Metastorage - Data object relational mapping layer generator

PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to