> I write: Return-Path: <[EMAIL PROTECTED]>\n

Get rid of the < and > in there, and use \r\n, not just \n to be

Also check you sendmail.cf to see if maybe you've disabled various people
from forging their Return-Path: and if you have, alter sendmail.cf to let
PHP get away with it.

NOTE:  That means that *ANY* user can then use PHP to forge Return-Path:...

> but sendmail re-writes this as: Return-Path: <[EMAIL PROTECTED]>
> My plan is to exec sendmail and use the -f flag to specify a return-path,
> can do this from the command line but I am unsure how to go about doing
> from within php basically what are the principals of using the exec
> function, specifically with sendmail and do I have to close the process
> after each mail that's sent.

You don't have to close the process if you use exec, as exec runs and
finishes all in one step as far as PHP is concerned.

But you'll need to cram everything for sendmail into a single line with echo
and ; and whatnot to get all the email stuff to it...

Probably better to use http://php.net/popen

WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm

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]

Reply via email to