gilrain wrote:

Hi all,

I've just finished a PHP/MySQL mailing list. Basically, I'm having problems
with my sendmail function. It takes an array of e-mail addresses
($addresses) and loops through it, e-mailing each one using an SMTP class I
found (the only identifying comment in it is "SMTP Class By TOMO
(2001/09/14)"). The problem is, it's very slow. The typical array of
addresses sent to this is 100 to 500 elements large. The actual mailing list
has over 7000 members, but the e-mails are sent out to a geographical
region. Ideally, though, this function should be able to handle mailing to
the entire member base.

It may well be a DNS problem. If an email address resolves in DNS immediately then an email may be sent very quickly. If not, DNS timeout can be in minutes. You could try using the dig program to look for MX or A records for your email addresses.

If you have a lot of customised emails to send then trying to do them on a web page is not such a good idea. I suggest doing them via a cron/at job, where there will be no timeout.

Regards
Chris



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to