Re: Invoking sendmail with PHP

From: Date: Thu, 15 Aug 2002 21:28:46 +0000
Subject: Re: Invoking sendmail with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112858@lists.php.net to get a copy of this message
Hello, On 08/15/2002 04:35 PM, Daren Cotter wrote:
To recap, my problem is: I need some mailings sent immediately (confirmation emails, welcome emails, password lookup emails, etc), while others simply get thrown into the queue, and get sent the next time the queue processes. I contacted a sendmail guru, and he told me that if Sendmail is run with the -odb arguments, the mail will process immediately, while if it's run with the -odd arguments, it will only be queued. So the question is, using PHP, how do I invoke sendmail with the different arguments separately?
If all you want for those cases is to use a direct delivery mode, you can do it by communicating directly with the recipient SMTP server. There is no need to use sendmail. I also use that method to send messages with instructions to let users choose a new password when they forget. I had to do it that way because the local mailer queue could be too busy and some times I was getting complaints of impatient users that did not want to wait more than a fe minutes for assistance by e-mail. What I use is this SMTP class that has a special direct delivery mode that can only be use to send to one or more recipient served by the same end SMTP server. http://www.phpclasses.org/smtpclass/ -- Regards, Manuel Lemos

« previous php.general (#112858) next »