Problems with mail() to AOL mail client

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LenHewitt
Forum Newbie
Posts: 10
Joined: Sat Jul 06, 2002 6:13 am
Location: United Kingdom

Problems with mail() to AOL mail client

Post by LenHewitt »

AOL's mail client is not recognizing the Sender: or Reply To from a form, although it is working fine in Mozilla, Netscape Messanger and Outlook Express.

When the recipient clicks on Reply in AOL's mail client, it is coming up as UnknownUser@UnknownHost although the mail header is showing as follows in Mozilla:

To: webmaster@grahamfarish.co.uk
Subject: Grafar Service/Spares Request
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
From: webmaster@bachmann.co.uk
Reply-To: webmaster@bachmann.co.uk.co.uk
Message-Id: <E17QnPy-0007NG-00@websrv14.netbenefit.co.uk>
Sender: <web1862@netbenefit.com>

The php mail() is:

$from = $email;
$subject .= "Grafar Service/Spares Request";
$mailto = "webmaster@grahamfarish.co.uk";
$headers.="Content-Type: text/plain; charset=iso-8859-1\r\n";
$headers.="From:".$email."\r\n";
$headers.="Reply-To:".$from."\r\n";
$headers.="Sender:".$from;
...
...
mail($mailto, $subject, $message, $headers);

Anyone any suggestions how to fix this?
Post Reply