#39285 [Opn]: Apache Adds Email Header

From: Date: Fri, 27 Oct 2006 19:40:15 +0000
Subject: #39285 [Opn]: Apache Adds Email Header
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104083@lists.php.net to get a copy of this message
ID: 39285 User updated by: webmaster at freshsoftware dot net Reported By: webmaster at freshsoftware dot net Status: Open Bug Type: Apache2 related Operating System: RedHat Fedora 4 PHP Version: 5.1.6 New Comment: When using the mail function I notice that apache appends an apache email address to the from: header. So whenI get the email messafe in MS Outlook the from address will be apache@myserver.com \n me@myserver.com. These are the header I am using: $header = "From:<customer-service@$none_secured_domain>\n"; //$header .= "bcc: customer-service@$none_secured_domain\n"; $header .= "Return-Path: <customer-service@$none_secured_domain>\n"; $header .= "Organization: ItsYourAd.com\n"; $header .= "X-Priority: 3\n"; $header .= "Content-Description: ItsYourAd.com Auction # $auction_num\n"; //$header .= "Content-Length: " . strlen("$body") . "\n"; $header .= "Content-Language: en-us\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-type: text/plain; charset=iso-8859-1\n"; mail("$customer_info->email", "ItsYourAd.com Banner Image Approved", "$body", "$header"); How can I get rid of the apache email address in the from header. Previous Comments: ------------------------------------------------------------------------ [2006-10-27 18:54:59] webmaster at freshsoftware dot net Description: ------------ When using the mail function I notice that apache appends an apache email address to the from: header. So whenI get the email messafe in MS Outlook the from address will be apache@myserver.com \n me@myserver.com. These are the header I am using: $header = "From:<customer-service@$none_secured_domain>\n"; //$header .= "bcc: customer-service@$none_secured_domain\n"; $header .= "Return-Path: <customer-service@$none_secured_domain>\n"; $header .= "Organization: ItsYourAd.com\n"; $header .= "X-Priority: 3\n"; $header .= "Content-Description: ItsYourAd.com Auction # $auction_num\n"; //$header .= "Content-Length: " . strlen("$body") . "\n"; $header .= "Content-Language: en-us\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-type: text/plain; charset=iso-8859-1\n"; mail("$customer_info->email", "ItsYourAd.com Banner Image Approved", "$body", "$header"); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39285&edit=1

« previous php.bugs (#104083) next »