Re: exec'ing sendmail?

From: Date: Tue, 31 Jul 2001 07:33:30 +0000
Subject: Re: exec'ing sendmail?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60338@lists.php.net to get a copy of this message
> I write: Return-Path: <accounts@talismanmarketing.co.uk>\n Get rid of the < and > in there, and use \r\n, not just \n to be RFC-compliant. 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: <nobody@vweb9.hiway.co.uk> > > My plan is to exec sendmail and use the -f flag to specify a return-path, I > can do this from the command line but I am unsure how to go about doing this > 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 richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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

« previous php.general (#60338) next »