When using the mail () function to send an email to a linux server the header information shows two from addresses. (1)e-mail address that was defined in $from variable in the header. (2) [EMAIL PROTECTED]
Can someone explain this? I only want the $from variable to show up in the header. Can I do this with the simple mail () function? Thanks Header info is below: >From [EMAIL PROTECTED] Mon Jan 14 08:33:19 2002 Return-Path: <[EMAIL PROTECTED]> Received: from localhost.localdomain ([EMAIL PROTECTED] [204.65.32.5]) by [EMAIL PROTECTED] (8.9.3/8.9.3) with ESMTP id IAA12868 for <[EMAIL PROTECTED]>; Mon, 14 Jan 2002 08:33:19 -0600 Received: from [EMAIL PROTECTED] (IDENT:root@[EMAIL PROTECTED] [204.65 .32.11]) by localhost.localdomain (8.12.1/8.11.2) with ESMTP id g0EEXpOn001442 for <[EMAIL PROTECTED]>; Mon, 14 Jan 2002 08:33:51 -0600 Received: (from nobody@localhost) by [EMAIL PROTECTED] (8.9.3/8.9.3) id IAA09861; Mon, 14 Jan 2002 08:35:08 -0600 Date: Mon, 14 Jan 2002 08:35:08 -0600 Message-Id: <200201141435.IAA09861@[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: TESTING From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Mail () function below: $to = "[EMAIL PROTECTED]"; $subj = "TESTING"; $body="Begin101Test" . "\n" . $N . "\n" . $C . "\n" . $r . "\nEnd101"; $header="From: " . $email . "\r\nReply-To: [EMAIL PROTECTED]"; mail ($to, $subj, $body, $header); __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]