On Fri, 8 Sep 2000, Bill Moseley wrote:

> 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.

Net::SMTP is just an interface to your mail (SMTP) server, which makes
Net::SMTP a client. When you fire sendmail or an equivalent you run a
client. It's how you configure the mailserver what makes the difference.
In case of sendmail it's both a client and server of course.

I'm not expert in mailing servers, so I guess someone on the list may
provide the necessary details of making the server queue the mails.

> 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?

As Perrin has suggested, benchmark it an see what's faster. It's so
simple.


_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org



Reply via email to