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

Simple question, like the title says. Which module do you use to send MIME email, and why? I am looking to use it in some CGI scripts, and so far have only really had any luck with MIME::Entity, but it's a little ornery at times (often complains about being unable to find Date::Format.pm) and I'd like something simple and clean - all I need right now is to specify a recipient, sender, subject, and text body.

Looking forward to some suggestions from fellow Monks.

..Guv

  • Comment on Opinions solicited: best internet mail module?

Replies are listed 'Best First'.
Re: Opinions solicited: best internet mail module?
by tjh (Curate) on Feb 13, 2002 at 03:35 UTC
      ++tjh, ++trs80 for the tips on loading a pure-perl module into my own directory on the server, even though I already knew how to do that :-)

      But what I was really hoping for was some user-feedback or experiential suggestions about which mail modules were the slickest to use. Like I said, I have used MIME::Entity which has the best OO interface of all the modules I've looked at, but which throws a bunch of non-fatal warnings about dependencies on Date::Format (I guess for some reason my provider doesn't have that module loaded).

      Maybe I should have submitted this to the Meditations section?

      ..Guv

        MIME::Lite gets a lot of airtime. Checked it out?
Re: Opinions solicited: best internet mail module?
by Flame (Deacon) on Feb 13, 2002 at 02:41 UTC
    Well, I don't claim to use it often, but I have used MIME::Lite a few times with good results.



    "Weird things happen, get used to it."

    Flame ~ Lead Programmer: GMS

      Unfortunately my service provider won't load it :(

      I'm looking at the documentation for Mail::Sender which seems somewhat promising...

        Can you install in your local directory? It is pure Perl so you can add it even without a compiler if you are on a windows host. Then your programs/scripts using it just use
        use lib "/your/directory"
        before your use MIME

        If you are constructing complex MIME messages I highly recommend using MIME::Lite.
Re: Opinions solicited: best internet mail module?
by tstock (Curate) on Feb 13, 2002 at 04:04 UTC
    I like Mail::Bulkmail and tend to use it even when I don't need its "hose" like power. I find its customization and general interface really fits well with my coding style.

    Tiago
Re: Opinions solicited: best internet mail module?
by demerphq (Chancellor) on Feb 13, 2002 at 12:08 UTC
    MIME::Lite and Mime::Entity are the ways to go. If you keep getting hassle about Date::Format then install it as per the instruction already provided.

    BTW: MIME::Lite is good for quickie emails, and is SEND only. MIME::Entity is the full beast and has lots of hooks for extensions etc.

    Yves / DeMerphq
    --
    When to use Prototypes?

      OK, this confirms my investigation and thinking on the topic.. thanks everyone!
Re: Opinions solicited: best internet mail module?
by vek (Prior) on Feb 13, 2002 at 03:57 UTC
    I usually use sendmail directly but I've had some decent success in the past with Mail::Mailer and Mail::Sender, FWIW.