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]