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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC