Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

performance problems when sending email from Perl

by ljhog
on Apr 17, 2002 at 13:59 UTC ( #159813=perlquestion: print w/replies, xml ) Need Help??

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

I am using perl to send a daily customized email to subscribers of a mailing list. I use "open(MAIL, "|/usr/lib/sendmail" and found that it takes about 6 seconds per email (for 1000 different emails that is one-and-a-half hour). Is there a faster way? They don't seem to have the Mailer::Mail module on our systemm but they do have Net::SMTP installed. Is that going to be faster?
  • Comment on performance problems when sending email from Perl

Replies are listed 'Best First'.
Re: performance problems when sending email from Perl
by lhoward (Vicar) on Apr 17, 2002 at 14:19 UTC
    In my experience Net::SMTP will probably be fastest. Especially if you use persistant connections (connect to the mailserver once and pipe all the mail across a single connection)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://159813]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2020-12-04 17:16 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (60 votes). Check out past polls.