Re: forking sendmail

From: Date: Mon, 17 Feb 2003 10:04:34 +0000
Subject: Re: forking sendmail
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-135812@lists.php.net to get a copy of this message
On Sun, 16 Feb 2003 01:05:58 -0300, Manuel Lemos <mlemos@acm.org> wrote:
Hello, On 02/16/2003 12:15 AM, Brendon wrote:
I've been trying to fork sendmail because DNS checks cause it to be slow delivering messages... Here's what i've tried, and many other variations... $str = "to: my@hotmail.com\nfrom: my@hotmail.com\nsubject: test"; exec('sendmail -i -t $str >& /dev/null&'); Has anyone successfully acomplished something like this? ideas?
You are duplicating a function that sendmail already provides given the right switches. Anyway, if you want to raise the message delivery throughput, the best you can do is to use the deferred mode so it does not take a long time to queue the messages and then sendmail will take care of the delivery next time it runs the queue. In that case you may want to look at this class for composing and sending messages that comes with sub-class to deliver with sendmail program directly. It comes with options to let you choose the appropriate sendmail delivery mode: http://www.phpclasses.org/mimemessage
Thanks for that. I'll look at it and see if I can modify it for my needs. The problem isn't sendmail priority. The system isn't doing anything and sendmail isn't doing anything. The problem is that it takes sendmail awhile for it to respond. No. sendmail isn't broke, it just has to do a lot of thinking before it talks to a client. I want to remove that problem from the equation by puting sendmail in the background once its called. Brendon

« previous php.general (#135812) next »