in reply to Net::SMTP v local MTA

I prefer Mail::Sendmail over Net::SMTP as it makes things even simpler, but using Net::SMTP allows you to hold the connection open and send all 3 in one go.

If you are running a SMTP server on localhost you shouldn't have a problem with speed. I have a CGI script that sends up to 10 in one go which runs fine. If I was, I'd either fork (if I didn't care about NT) or spool locally.

Of course there are other options, I've handled this before by having a flag in the DB that says 'email this user X' and a cron job that handles it.

Hope this helps...

Replies are listed 'Best First'.
(cLive ;-) Re: Net::SMTP v local MTA
by cLive ;-) (Prior) on Jan 12, 2002 at 02:52 UTC
    localhost - the word hits me like a wet fish.

    Yes, I moved the script to my live server. No I didn't update the host in $smtp->mail(HOST) line.

    That would also explain why my messages were getting rejected...

    d'oh, d'oh, d'oh.

    I think I'll just keep sending them live for now...

    cLive ;-)

    /me giggles manically at his own stupidity