At 10:31 AM 09/08/00 +0200, Stas Bekman wrote:
>Net::SMTP works perfectly and doesn't lack any documentation. If there is
>a bunch of folks who use mod_perl for their guestbook sites it's perfectly
>Ok to run sendmail/postfix/whatever program you like... But it just
>doesn't scale for the big projects. 
>
>For a simple replacement of sendmail routine with Net::SMTP grab:
>http://www.stason.org/works/scripts/mail-lib.pl

I guess I need some help understanding this, as it seems I have things
backwards.

I don't use Net::SMTP as I feel I'm at the whim of the SMTP server
(possibly on another machine) -- at least forking and asking sendmail to
queue the file, although eating memory and requiring a fork, seems like a
constant.  This is probably all hogwash, but I like constants.

So for times when I send mail just once in a while I fork & exec sendmail.
We got 2G of RAM for a reason.

But for times when I need to send mail on many requests I write to a queue
file and use cron to process the mail.

I don't know how well either of these scale.  But if scaling is important
I'd think it best not to rely on some smtp daemon.

I just looked at my old mail sending module a few days ago that uses
sendmail and would fallback to Net::SMTP if sendmail wasn't available (it
was running on Win at one point, argh!).  I just removed the Net::SMTP
part.  Are you saying that I removed the wrong code?

BTW -- I just looked and I have some other places where I use open3 to open
sendmail.  I have a note about sendmail generating an error by writing to
STDERR or STDOUT only and not returning failure.  This sound familiar to
anyone?



Bill Moseley
mailto:[EMAIL PROTECTED]

Reply via email to