Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Selecting an Email Package?

by space_monk (Chaplain)
on Apr 26, 2013 at 07:05 UTC ( #1030784=perlquestion: print w/replies, xml ) Need Help??
space_monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello, fellow Monks,

The choice of packages for sending email seem to be huge, ranging from simply issuing a command to call sendmail upwards through various Mail::Sendmail, Mail, Mime::Lite and Email::Sender bundles.

Do my fellow Monks have any guidelines as to which package is the "best" for email, or can they give guidelines as to how to decide which email package is the most useful for a given situation?

If by any chance I've missed an earlier posting on this subject, then please point me in the right direction. However this seems to be one of those issues that needs revisiting periodically

If any of my proposed solutions have minor errors, it's because I don't waste my genius on trivial matters. :-P

Replies are listed 'Best First'.
Re: Selecting an Email Package?
by marto (Archbishop) on Apr 26, 2013 at 08:31 UTC

    It depends what you mean by "best", you list no criteria. Despite claims in the documentation I find MIME::Lite to work without fail for my email needs. Super Search will find much discussion on the topic of email modules, which you can then test to see if the meet your requirements.

      Thanks for your reply

      I deliberately did not list any criteria as I was after an answer that defined what questions should be asked in selecting a package to handle Mail sending. I also normally use Mime::Lite, but there are a plethora of packages on CPAN and I was looking to see whether it was "best practice" to use this module or whether better are available.

      If any of my proposed solutions have minor errors, it's because I don't waste my genius on trivial matters. :-P
Re: Selecting an Email Package?
by tobyink (Abbot) on Apr 26, 2013 at 10:19 UTC

    For quick and dirty I-just-need-to-send-a-damn-email tasks, I tend to use the poorly named Mail::Sendmail which really has nothing to do with sendmail.

    For anything bigger I tend to jump straight up to Mail::Box which is an enormous framework that tries to do absolutely everything even vaguely e-mail related, mostly achieving that aim with some panache.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1030784]
Approved by Corion
[LanX]: safe?
[shmem]: LanX: you can pass a shell command via @ARGV.
[shmem]: moritz: don't know, but you'd prolly whip it up in no time.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2018-05-21 13:17 GMT
Find Nodes?
    Voting Booth?