Re: [PHP] Re: capturing bouncers.

2002-06-11 Thread Analysis Solutions

On Tue, Jun 11, 2002 at 01:40:04AM -0400, Analysis  Solutions wrote:
 
 On Tue, Jun 11, 2002 at 02:07:38AM -0300, Manuel Lemos wrote:
  On 06/10/2002 02:08 PM, Subhendu Mohapatra wrote:
  
  The bounce address can't be set with headers.
 
 Please elaborate.  I've successfully used the From: header to handle 
 returned mail.

Hmmm...  After I posted that, I thought better of what I said and went to 
bed.  Now I've had some rest and did a test.  I was wrong.  On my Win32 
system, setting the From or Return-Path headers didn't change where 
bounces go to.  The sendmail_from setting in php.ini did.

Pardon me,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: capturing bouncers.

2002-06-10 Thread Manuel Lemos

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




Re: [PHP] Re: capturing bouncers.

2002-06-10 Thread Analysis Solutions

Hi Manuel:

On Tue, Jun 11, 2002 at 02:07:38AM -0300, Manuel Lemos wrote:
 On 06/10/2002 02:08 PM, Subhendu Mohapatra wrote:
 
 The bounce address can't be set with headers.

Please elaborate.  I've successfully used the From: header to handle 
returned mail.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php