|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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");
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 07:00:01 2025 UTC |
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.