I'm clueless on how to fix my problem I have. The script works fine for the most part except my emails look like this:
Return-path: <ITEagle03@server1.xxx.com>
Envelope-to: ITEagle03@xxx.ws
Delivery-date: Wed, 15 Oct 2003 20:19:19 -0500
Received: from seanhiat by server1.xxx.com with local-bsmtp (Exim 4.24)
id 1A9wnO-0006lR-S0
for ITEagle03@xxx.ws; Wed, 15 Oct 2003 20:19:19 -0500
Received: from nobody by server1.xxx.com with local (Exim 4.24)
id 1A9wnO-0006lJ-OZ
for webmaster@xxx.ws; Wed, 15 Oct 2003 20:19:18 -0500
To: webmaster@xxx.ws
Subject: Website Feedback
Reply-To: sITEagle03@xxx.ws
From: ITEagle03@xxx.ws
Message-Id: <E1A9wnO-0006lJ-OZ@server1.xxx.com>
From: Nobody <nobody@server1.xxx.com>
Date: Wed, 15 Oct 2003 20:19:18 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on
server1.xxx.com
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=ham version=2.60
X-Spam-Level:ITEagle03 <user@xxx.ws> wrote:
test msg
<br />
<b>Notice</b>: Must use comma to separate addresses: From: ITEagle03@xxx.ws (errflg=3) in <b>Unknown</b> on line <b>0</b><br />
Here's the code that does the work:
<?
$toaddress = 'webmaster@xxx.ws';
$subject = 'Website Feedback';
$mailcontent = $requiredName. " <" .$requiredEmailAddress. "> wrote:\n" .$requiredMessage;
$additionalheaders = "Reply-To: " .$requiredEmailAddress. "\n From: " .$requiredEmailAddress;
mail($toaddress, $subject, $mailcontent, $additionalheaders);
?>
Thanks.