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

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!

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

Replies are listed 'Best First'.
Re: Re: Re: Net::SMTP shortcomings if used as a general mail sending module
by samtregar (Abbot) on Jun 02, 2002 at 16:37 UTC
    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.

        You can try it out - just find an open SMTP relay on the internet. Judging by all the spam in my INBOX it shouldn't bet hard. ;)

        As for your second question, permit me to answer it with a question: which is easier, a) using a simple module you already understand in 10 lines of code or b) using a new module with some fancy features in 5 lines of code? I chose a) in CGI::Application::MailPage after much frustration trying to get b) to work reliably. Maybe in a perfect world where all modules are as well written as Net::SMTP b) would be the best choice, but I don't live in that world and neither do you!

        -sam