You don't need to modify sendmail's config, you simply need to modify how you are calling sendmail from PHP. Chances are the server you are on already flushes the queue occasionally. You'd need to try to figure out how often, perhaps simply by trial and error.
Since you have no control over the php.ini file, and you can't set this particular ini directive using ini_set(), you will have to call sendmail manually using system(). You don't need to put it into the background since you will just be telling sendmail to queue by passing the correct flags to it, so it should be straightforward. -Rasmus On Wed, 21 Aug 2002, Pupeno wrote: > Rasmus Lerdorf wrote: > > > Simply configure your MTA to queue requests coming from PHP. Your php.ini > > file has the sendmail invocation line that is used by PHP's mail() > > function. Most MTA's out there have a sendmail-like interface and most > > have a way to tell it to simply queue the request and return immediately. > > > > For sendmail you tell it to queue by adding a option to the command line > > specified in php.ini using the -o flag. Check your sendmail docs for the > > actual option, but on my system my docs say: > > > > DeliveryMode=x > > Set the delivery mode to x. Delivery modes are `i' for > > interactive (synchronous) delivery, `b' for background > > (asynchronous) delivery, `q' for queue only - i.e., actual > > delivery is done the next time the queue is run, and > > `d' for deferred - the same as `q' except that database > > lookups for maps which have set the -D option (default > > for the host map) are avoided. > > > > Don't forget that if you just queue the mssages, you need to flush the > > queue every now and then. Traditionally that is done by a cron job that > > runs periodically and calls sendmail to flush the queue. > > But I'm running on a shared hosting server, I'm not able to modify > Sendmail's configuration :( > Thank you anyway for your help, any other idea ? > -- > Pupeno: [EMAIL PROTECTED] > http://www.pupeno.com > --- > Help the hungry children of Argentina, > please go to (and make it your homepage): > http://www.porloschicos.com/servlet/PorLosChicos?comando=donar > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php