[thelist] [php] bounced php mail on win2k
Judah McAuley
judah at wiredotter.com
Wed May 5 16:26:29 CDT 2004
Anthony Baratta wrote:
> At 12:01 PM 5/5/2004, Judah McAuley wrote:
>
>> Any thoughts on handling bounce messages elegantly short of writing a
>> custom parser to check the sendmail_from mailbox and send the bounces
>> to the correct addresses?
>
>
> Try adding a header called Return-Path. e.g.
>
> Return-Path: <bounces at foo.org>
>
> In addition to your reply to header. This will help - but nothing is
> 100% effective to route bounces.
Thanks for the suggestion, but it doesn't appear to work in my case.
I've got a situation where the sendmail_from address is x at a.com, I'm
sending a message to y at b.com and all my headers (From, Reply-To, and
Return-Path) are all z at c.com If y at b.com is not a valid address, b.com
is sending the bounce to x at a.com instead of z at c.com
When I look at the headers, I'm now seeing two Return-Path entries, one
that is set to the sendmail_from address and one that I set in my mail()
function. The bounce appears to just see the first one and ignore the
second one. Since I need to set the sendmail_from variable on Win32 to
send out mail at all, it looks like I'm just screwed. Ah well.
Judah
More information about the thelist
mailing list