Hi
I had a script designed for a classified ads website. The website has a feature where a user can email the owner of an ad through the website by clicking a 'contact seller' button. Everything works fine with the php email script, except that AOL users do not receive the email. I have read several discussion boards about this problem but have not seen a solution to it as of yet. I know AOL has spam filters and that it probably filters out the email, but the emails don't even show up in the spam folder.
Here is the email script currently in place:
<?
require_once("conn.php");
require_once("includes.php");
//get the agent info
$q1 = "select * from class_members where MemberID = '$_GET[MemberID]' ";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);
if(isset($POST[s1]))
{
$to = $a1[email];
$subject = $POST[subject];
$message = $_POST[message];
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $_POST[u_name] <$_POST[u_email]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";
mail($to, $subject, $message, $headers);
//get the templates
require_once("templates/HeaderTemplate.php");
require_once("templates/ContactOKTemplate.php");
require_once("templates/FooterTemplate.php");
exit();
}
$MemberName = "$a1[FirstName] $a1[LastName]";
//get the templates
require_once("templates/HeaderTemplate.php");
require_once("templates/ContactTemplate.php");
require_once("templates/FooterTemplate.php");
?>
Any ideas would be greatly appreciated!