Hello,
On 08/17/2004 02:17 PM, Sandy Keathley wrote:
I want to send emails to 2700 addresses selected from a MySQL database (an opt-in list). I am using the Mail module, assembling the addresses into an array, and passing that to the module. I have done this before with a few hundred addresses, but in this case, it fails.
I know that some of the addresses are no longer good, as a number of them bounce back to a special return box. I have no way of knowing how many were delivered, but I added a special one to the end of the array, and it was not delivered, so I have to assume that not all are going out.
My thought is that there is a limit to the size of the array that Mail can handle. I have not tried using the builtin PHP mail function.
Does anyone know a better way to accomplish this?
The mail function does not take arrays as arguments. Even if you are assembling addresses or using multiples To:, Cc: or Bcc: headers, your mailing system may be imposing a limit of recipients per messages.
Today is no longer a good idea sending a single message to many recipients.
Even if you split your mailing in several iterations of the mail function, to preserve the recipients privacy, you need to use Bcc:, but that way several well known mailing systems will tag your messages as spam because the recipients addresses are not visible in To: or Cc: header.
This means that the safest way to send messages to many recipients is to queue them separately. It takes a lot of time to queue, but the messages do not take the risk of being tagged as spam. Despite of this, there are some system specific optimizations that can be done to reduce the queue time. Just let me know which mail system do you use (Windows based, sendmail, qmail, exim, postfix, etc..) so I can advise.
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php