php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39285 Apache Adds Email Header
Submitted: 2006-10-27 18:54 UTC Modified: 2006-10-27 21:48 UTC
From: webmaster at freshsoftware dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.6 OS: RedHat Fedora 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at freshsoftware dot net
New email:
PHP Version: OS:

 

 [2006-10-27 18:54 UTC] 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");



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-27 19:40 UTC] webmaster at freshsoftware dot net
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.
 [2006-10-27 21:48 UTC] tony2001@php.net
Please consult your system administrator. The address is being added by your mail server, not PHP.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 07:01:28 2025 UTC