Hello, On 06/10/2002 02:08 PM, Subhendu Mohapatra wrote: > I am sending mails from my site by PHP code ( mail($em, $sub, $temp, > $headers); ) > and wants to capture bouncers in one email address.( My intention is to > remove those bounced address ). I have set the from address like this > $from="From:[EMAIL PROTECTED]\n; > $headers = $from."Content-Type: text/html; charset=iso-8859-1\n"; > > It is sending mails with from address [EMAIL PROTECTED] address but > bouncers are not returning to this address.
The bounce address can't be set with headers. > Is there any better way of doing this ? Yes, you may want to try this class that emulates what you want by specifying the Return-Path header. It works whether you use sendmail on Unix systems or SMTP on Windows, but you have to use the appropriate transport sub-class because the default transport uses mail() and it will not work that way: http://www.phpclasses.org/mimemessage Beware that delayed delivery warnings also return to the bounce address. There are tricks to avoid that too. -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php