in reply to Net::SMTP shortcomings if used as a general mail sending module

I only use Net::SMTP. I have one simple reason: it works and when it doesn't (rarely) it's very easy to debug. This is because it has a simple elegent design and a careful implementation. What's not to like?

Your points don't strike me as particularly damning. First, I've never had any problem writing programs that send email and require a simple email address for the destination. What's a mail template anyway?

Second, I've used MIME::Lite with Net::SMTP and they work together just fine. Maybe MIME::Lite could have done it all internally but I never bothered to find out. It worked, and that's all she wrote.

Your final point is the most absurd - what kind of bass-ackwards organization can't maintain an SMTP server? Your nutty ISP could just as well maintain their own SMTP server and program it for super-security.

-sam

  • Comment on Re: Net::SMTP shortcomings if used as a general mail sending module

Replies are listed 'Best First'.
Re: Re: Net::SMTP shortcomings if used as a general mail sending module
by kappa (Chaplain) on Jun 02, 2002 at 09:52 UTC
    Wish you faced any real problems before choosing your favourite mail-sending module. The fact that you never heard of mail templates means you will need them in the near future :)

    And about provider, I'll say that there's no easy way to control access to SMTP based on local user names. Imagine that you want to let alex send 10 mails a day and to prevent sergey from sending any mails at all.

    I could probably follow your step and add that any organization that doesn't provide my scripts with a working /usr/sbin/sendmail is also bass-ackwards and nutty, but that's no use. That's life, and Net::SMTP fails in my case, while all the other modules work like a charm in both cases.

    Mentioned MIME::Lite, btw, has a perfect SMTP-sending abilities implemented via Net::SMTP!

      Heh. I suppose you wouldn't consider CGI::Application::MailPage a real problem. During the development of that module I tried a number of mail sending modules. They were all too complicated and when they failed it was difficult to tell why. When I settled on Net::SMTP my life became abruptly much simpler and my module started to work reliably.

      -sam

        Wait, that means I won't be able to even try your module? :)

        And seriously, using Net::SMTP for sending mail in public libraries is much worse. Your failure to debug problems and resorting to a wonderful but limited solution seems strange. And don't say that using Net::SMTP is easier than for example MIME::Lite, that would be just lying.