Re: Solution [PHP] mail() and Return-Path header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Richard.  That worked great.


----- Original Message -----
From: "Richard Heyes" <richard.heyes@xxxxxxxxxxxxxxxx>
To: "Søren Schimkat" <schimkat@xxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, February 02, 2006 8:02 AM
Subject: Re:  mail() and Return-Path header


Søren Schimkat wrote:
> Hi Guys
>
> I'm using the mail function for sending mail, and I would like to specify
the
> Return-Path header, but it would seem that PHP or Apache is modyfying the
> header.
>
> This is the simple code:
>
> mail('to@xxxxxxxxxxxxx', 'Subject', 'Message', "From:
> from@xxxxxxxxxxxxx\nReturn-Path: bounce@xxxxxxxxxxxxx\n");
>
> .. but when the message bounces - it bounces to apache@xxxxxxxxxx instead
of
> the bounce adress?
>
> Any hints on how to solve this problem?

If you're on *nix you can use the fifth parameter of the mail()
function, and specify "-fbounce@xxxxxxxxxxxxx".

--
Richard Heyes
http://www.phpguru.org

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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux