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

Hey all,

I'm making a simple Password reminder script where it allows users to insert there member's e-mail address and request a new password.

Since this involves e-mailing a confirmation link to the members e-mail address, I will be using either one of these modules, MAIL::Sendmail and NET::SMTP.

Now theres two versions of MAIL::Sendmail that seem to be new. Heres the thing that confuses me a lot. One version of MAIL::Sendmail is v0.79 (this is the one I have installed) and the other is v0.78. When I goto CPAN and search for "MAIL::Sendmail", these two versions come up. The version 0.78 has a more recent date then the v0.79 and a different author. Basically both work the same it seems, and v0.79 seems to incorportate MIME::QuotedPrint, so therefore I will use this one if deciding to use MAIL::Sendmail.

Since the domain name of the site does not have a mail server yet, we will be using the SMTP server of the domain registering service.

For the situation I'm in, does anyone have any recommendations on which one I should be using. Since any member's e-mail address may be complicated, should I choose NET::SMTP isntead since its RFC compliant? I read the thread "MAIL::Sendmail" on this site and it says that MAIL::Sendmail is not. Any suggestions on which module I should be using for my case is appreciated :)

Thank you,

Anthony

Replies are listed 'Best First'.
Re: Mail::Sendmail or NET::SMTP
by blue_cowdawg (Monsignor) on Apr 07, 2004 at 02:39 UTC

        does anyone have any recommendations on which one I should be using

    Well, my favorite CPAN module for the task is MIME::Lite which has a very simple interface to use and allows the attachment of binary attachments as well. Others swear by Mail::Send.

    To each their own... YMMV...

    UPDATE: Dadgum typos! Thanks nmcfarl

Re: Mail::Sendmail or NET::SMTP
by scottj (Monk) on Apr 07, 2004 at 00:49 UTC
    The last time I saw Mail::Sendmail, I believe that it required me to edit path to my sendmail binary in the .pm file. I really didn't like that. Not sure what's happened with it since those days.

    I use Net::SMTP for most mailings these days. I didn't know that it was RFC compliant, but that's because I haven't really read the docs on it. The POD has an example at the top that has satisfied all of my needs thus far. Net::SMTP is an excellent module and does its job well.
Re: Mail::Sendmail or NET::SMTP
by gmpassos (Priest) on Apr 07, 2004 at 04:39 UTC
    Take a look in Mail::SendEasy. It's based in SMTP and not in the sendmail program in linux, soo, is platform independent. It also has SMTP authentication and attachments, since you tell that you are using an external SMTP server, what generally need a password. Other good thing is that Mail::SendEasy is a self contained module, soo, it doesn't have dependencies.

    MIME::Lite will be my 2nd option, and is well used by a lot of people.

    Graciliano M. P.
    "Creativity is the expression of the liberty".

      Mail::Sendmail does not rely on the sendmail application, and in fact, requires only Perl (and a network connection) to work.

      Corion has a nice write-up on Mail::Sendmail pros and cons.