vit has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
What is the easiest way to send emails from perl/cgi server side. I do not need anything special, so could it be possible to avoid using special perl modules.

Replies are listed 'Best First'.
Re: Sending emails in perl/cgi environment
by olus (Curate) on Mar 19, 2009 at 15:38 UTC

    Why avoid the use of modules? MIME::Lite is one of your friends. I find it more elegant than calling the command line for sendmail

    update: The documentation has a bunch of examples MIME::Lite.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Sending emails in perl/cgi environment
by locked_user sundialsvc4 (Abbot) on Mar 19, 2009 at 17:44 UTC

    Modules are your most cherished friends.

    For this sort of task, and for many thousands of others, you will always find that “somebody else has done it,” and that “they have done it very, very well.”

    Which means, in short, that you don't have to do it all over again! With very, very little effort on your part, you are rewarded with a block of code that is well-tested and known to work. You do not waste time “reinventing the wheel.”

Re: Sending emails in perl/cgi environment
by Anonymous Monk on Mar 19, 2009 at 15:43 UTC
Re: Sending emails in perl/cgi environment
by apl (Monsignor) on Mar 19, 2009 at 17:43 UTC