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 [EMAIL PROTECTED] \n
[EMAIL PROTECTED]

These are the header I am using:

$header = "From:<[EMAIL PROTECTED]>\n";
//$header .= "bcc: [EMAIL PROTECTED]";
$header .= "Return-Path: <[EMAIL PROTECTED]>\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 [EMAIL PROTECTED] \n
[EMAIL PROTECTED]

These are the header I am using:

$header = "From:<[EMAIL PROTECTED]>\n";
//$header .= "bcc: [EMAIL PROTECTED]";
$header .= "Return-Path: <[EMAIL PROTECTED]>\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

Reply via email to