Hello, On 01/26/2003 02:17 AM, Maciek Ruckgaber Bielecki wrote:
That number of messages is small and with today's servers you can queue that volume of personalized is less than a minute. Your problems will start as you enter in the tens of thousands of recipients, not because qmail won't handle it but because that many message in the queue will prevent the incoming messages to arrive in time.I'll start to write an application which will be used to send large amounts of mail to users in a DB. All these mails to be sent shoul be personalized. Since i understand, and please correct me if im wrong, the mail() function is not a good option for this purpose. (the amount of mail to be sent may vary from 50 to 800 messages). I have considered using some masive mail application such majordomo or EZMLM. EZMLM is not easily configurable for sending personalized mail, and majordomo requires sendmail, (i would prefer to use qmail), i know about patches to be done so it works with qmail, but i dont consider them really clean.What would you guys suggest ?? should i jump into majordomo - sendmail, or do you know something else that might be a better solution.
Anyway, for that volume of messages you may want to try this class that comes with an example of how to send personalized messages to many users. For larger volumes of recipients you can still use the same class but it will take much more time, so to not choke the mail queue, you would better send the messages during a few minutes and then rest for about 3 times the same period before you resume sending for a few minutes more.
For greater efficiency, if possible do not personalize the message body so you can hint the class to cache it so it does not waste time regenerating the message body for each recipient.
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php