RE: [PHP] SMTP/mail question

From: Date: Thu, 21 Jun 2001 21:30:15 +0000
Subject: RE: [PHP] SMTP/mail question
Groups: php.general 
Request: Send a blank email to php-general+get-54809@lists.php.net to get a copy of this message
Michi, Try having your sysadmin add this line to your apache virtualhost entry: php_admin_value sendmail_path "/usr/sbin/sendmail -fYourEmailAddress@yourdomain.com -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@hostname.domain.com, which inevitably returns bounced emails to root... Let me know if that works, Aaron Bennett abennett@liquidstudio.com -----Original Message----- From: mailing_list@gmx.at [mailto:mailing_list@gmx.at] Sent: Thursday, June 21, 2001 1:52 AM To: Jason Murray Cc: php-general@lists.php.net 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@address.com", "Subject", "Email body", > "Return-path: jason.murray@melbourneit.com.au\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@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#54809) next »