Werid problemswith mail() command: From address on sent messages
| From: | C.F. Scheidecker Antunes | Date: | Thu, 28 Nov 2002 23:35:52 +0000 |
| Subject: | Werid problemswith mail() command: From address on sent messages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126443@lists.php.net to get a copy of this message | ||
Hello All,
I wonder if is there anyone who ever had the same problem and know how to solve it.
I have a web site that does send e-mail to some users based on requests. The problem is that
although I pass the right user/from address on the mail function, the message source shows From as
beeing apache@localhost and therefore some messages bouce back due to anti spam filters.
This server is a Red Hat Linux 7.2 and it does not have apache 2.0 but 1.3. It does not have
sendmail runnig or installed but another server on the same network does have it.
The problem is that I do not want and cannot have my message headers with a From: Apache@LocalHost
as this copy bellow shows:
I've changed the header variable and put a From in it so it does displays the right FROM:
address as bellow. But as you can see, the Received: (from apache@localhost) by servername, etc is
there so the spam filters filter it.
Return-Path: <apache>
Received: (from apache@localhost)
by ns1.nando.net (8.11.2/8.11.2) id gASLtQM27458;
Thu, 28 Nov 2002 19:55:26 -0200
Date: Thu, 28 Nov 2002 19:55:26 -0200
Message-Id: <200211282155.gASLtQM27458@ns1.dataware-bi.net>
To: nando@antunes.eti.br
Subject: Order # 603 (511066220021128194052)
Content-Type: text/html
From: nando@antunes.eti.br
Reply-To: nando@antunes.eti.br
X-Mailer: PHP/
My php.ini has an smtp entry but no sendmail is running on the local machine. Do I have to have one
running? I wish I did not have to do it. Any other way to fix this issue?
Carlos Fernando Scheidecker Antunes
Linux User #207984