[PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Kevin Price-Ward

Hi,

I am setting up a php emailer facility using the 'mail' function, I have
defined the 'Return-Path:' in the fourth argument of 'mail', but this keeps
getting overwritten by sendmail:

my code says: 
$headers .= Return-Path: [EMAIL PROTECTED]\n;

but the source on the resulting email says:
Return-Path: [EMAIL PROTECTED]

(Where vweb9.hiway.co.uk is our ISP's server)


the problem with this is that emails that might have delivery problems,
don't get returned to me and I will never know that they haven't been
delivered.

Any ideas?

Thanks
the_lar


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Taylor, Stewart

Maybe try using Reply-To instead of Return-Path

-Stewart
-Original Message-
From: Kevin Price-Ward [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2001 11:18
To: [EMAIL PROTECTED]
Subject: [PHP] Defining the Return-Path in an email header?


Hi,

I am setting up a php emailer facility using the 'mail' function, I have
defined the 'Return-Path:' in the fourth argument of 'mail', but this keeps
getting overwritten by sendmail:

my code says: 
$headers .= Return-Path: [EMAIL PROTECTED]\n;

but the source on the resulting email says:
Return-Path: [EMAIL PROTECTED]

(Where vweb9.hiway.co.uk is our ISP's server)


the problem with this is that emails that might have delivery problems,
don't get returned to me and I will never know that they haven't been
delivered.

Any ideas?

Thanks
the_lar


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Dan Lowe

Previously, Kevin Price-Ward said:
 
 I am setting up a php emailer facility using the 'mail' function, I have
 defined the 'Return-Path:' in the fourth argument of 'mail', but this keeps
 getting overwritten by sendmail:
 
 my code says: 
 $headers .= Return-Path: [EMAIL PROTECTED]\n;
 
 but the source on the resulting email says:
 Return-Path: [EMAIL PROTECTED]
 
 (Where vweb9.hiway.co.uk is our ISP's server)
 
 the problem with this is that emails that might have delivery problems,
 don't get returned to me and I will never know that they haven't been
 delivered.

Return-Path can't be reliably set on the source system; it is commonly set
by the destination system using the value from MAIL FROM obtained during
the SMTP transaction.

You may be better off not using mail() and instead exec'ing a copy of
sendmail (or equivalent) with the -f flag (or equivalent).  Such as:

  sendmail [EMAIL PROTECTED]

You can do this in a few different ways, but it's not any different than
opening any other process and piping data to it.

 -dan

-- 
If the police arrest a mime, do they tell him he has the right to remain
silent?   -George Carlin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]