#39285 [NEW]: Apache Adds Email Header

From: Date: Fri, 27 Oct 2006 18:54:59 +0000
Subject: #39285 [NEW]: Apache Adds Email Header
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104082@lists.php.net to get a copy of this message
From: webmaster at freshsoftware dot net Operating system: RedHat Fedora 4 PHP version: 5.1.6 PHP Bug Type: Apache2 related Bug description: Apache Adds Email Header 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 bug report at http://bugs.php.net/?id=39285&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39285&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39285&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39285&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39285&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39285&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39285&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39285&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39285&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39285&r=support Expected behavior: http://bugs.php.net/fix.php?id=39285&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39285&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39285&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39285&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39285&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39285&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39285&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39285&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39285&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39285&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39285&r=mysqlcfg

« previous php.bugs (#104082) next »