toadi has asked for the wisdom of the Perl Monks concerning the following question:

I tried to send 3000 Mails with a perl script using Mail::Mailer.

Sendmail could only spawn so many processes and lots of my mails where lost :(

I solved it with sending 50 mails and did a sleep of 5 after that send the next 50 mails, ...

Is there a better method handling this???


--
My opinions may have changed,
but not the fact that I am right

  • Comment on Using Mail::Mailer w/o sending too many e-mails at once

Replies are listed 'Best First'.
Re: Mail::Mailer
by gav^ (Curate) on Nov 30, 2001 at 21:29 UTC
    Have you looked at Mail::Bulkmail? I've used it to send 485,000 mails out and it handles it without a problem.

    I doubt Mail::Mailer is the problem (I've never used it), it might be your sendmail configuration that is at fault. We use postfix so that we can limit output threads.