* Thus wrote Lowell Allen ([EMAIL PROTECTED]):
> return-path for emails is something like "Return-Path:
> <[EMAIL PROTECTED]>". I had accepted that I could not change
> the return-path value with PHP, but reading about this fifth parameter
> renewed my hope that I could.
> 
> I tried adding a fifth parameter to mail() in order to do this, like so:
> 
> // fifth mail() parameter to set envelope sender
> $cmd_line_param = "[EMAIL PROTECTED]";
> mail("$fullname<$email>", $subject, $message, $headers, $cmd_line_param);
> 
> This didn't change the return-path header. Perhaps the problem is that I
> have no idea what the syntax of the command line parameter is (what the "-f"
> does).

I believe its '-f [EMAIL PROTECTED]', could be different depending on wich
sendmail your using.

I'm curious though what if your sendmail already has a -f on it:
  php.ini: sendmail_path=sendmail [EMAIL PROTECTED]

thus a command
sendmail [EMAIL PROTECTED] [EMAIL PROTECTED]

> 
> Can anyone advise? Is it possible to use this fifth parameter to set the
> return-path header, and if so, what's the syntax?
> 

Also, the 5th paramater is disabled in safe_mode, check that also if the
above doesn't work.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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

Reply via email to