Title: RE: [PHP] SMTP/mail question

Michi,
  Try having your sysadmin add this line to your apache virtualhost entry:
php_admin_value sendmail_path "/usr/sbin/sendmail [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 [EMAIL PROTECTED], which inevitably returns bounced emails to root...

Let me know if that works,
Aaron Bennett
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 1:52 AM
To: Jason Murray
Cc: [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("[EMAIL PROTECTED]", "Subject", "Email body",
>      "Return-path: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to