Re: capturing bouncers.

From: Date: Tue, 11 Jun 2002 05:07:38 +0000
Subject: Re: capturing bouncers.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101500@lists.php.net to get a copy of this message
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:bouncer@mysite.net\n; $headers = $from."Content-Type: text/html; charset=iso-8859-1\n"; It is sending mails with from address bouncer@mysite.net 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

« previous php.general (#101500) next »