php-general | 2001062

RE: [PHP] SMTP/mail question From: Aaron Bennett (aaron <email protected>)
Date: 06/21/01

Michi,
  Try having your sysadmin add this line to your apache virtualhost entry:
php_admin_value sendmail_path "/usr/sbin/sendmail
-fYourEmailAddress <email protected> -t -i"
(dont forget the '-f' before your email address...)

this sets the sendmail envelope headers to be 'originating' from your
address, instead of something like userrunningapache <email protected>,
which inevitably returns bounced emails to root...

Let me know if that works,
Aaron Bennett
abennett <email protected>

-----Original Message-----
From: mailing_list <email protected> [mailto:mailing_list <email protected>]
Sent: Thursday, June 21, 2001 1:52 AM
To: Jason Murray
Cc: php-general <email protected>
Subject: RE: [PHP] SMTP/mail question

> > I tried all possible headers (Return-Path, Error-To, Sender, ...) to
> > redirect the bouncing mail to my address but nothing worked -
> > all bouncing-mails go to root!
>
> this works for me:
>
> mail("some <email protected>", "Subject", "Email body",
> "Return-path: jason.murray <email protected>\n");
>
> Maybe you mistyped the header or something...

no, this header (as well as Sender:) is being overwritten by the ISP's
sendmail!!!
and the recipient would see this header in the mail!!!
I don't want the recipient to see his address in To: nor the Return-Path:
!!!
First I thought this is not possible, but it works great with perl!

any idea???

thanks
michi

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

-- GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>