in reply to Re: MTA for Perl
in thread MTA for Perl

I'm a little surprised you continue to use MIME::Lite given your high standards and the warning in that module's doc

I have a legacy module that I want to use because it does everything I need to do but it uses MIME::Lite. I would rather not rewrite it...

Plus, quite some time ago I suggested moving away from MIME::Lite and Corion chipped in...I figured that if a module is good enough for a Monk who is vastly more knowledgable and more experienced than me, then that's good enough reason for me not to change existing code even if I plan to avoid it in future. See Re^3: printing output of a perl script to the Email body

Generally, I don't use any (publically available) Perl module to send email. I use the Brevo API instead.

Replies are listed 'Best First'.
Re^3: MTA for Perl
by Corion (Patriarch) on Mar 19, 2024 at 08:22 UTC

    To qualify that a bit, MIME::Lite still works well for sending. If I were starting out with a fresh project where sending mail is a core functionality, I would maybe also look at Email::Sender or one of the other modules. But in my case, sending mail is usually a requirement that requires little beyond sending an HTML and/or text mail with some files attached, and that is well implemented by MIME::Lite. Usually not even the recipient mail addresses are supplied by the user, so the inputs are fairly trusted and the scripts also only talk to my MTA for handing off the mail and later forwarding.

      Thanks for the clarification.

      But in my case, sending mail is usually a requirement that requires little beyond sending an HTML and/or text mail with some files attached, and that is well implemented by MIME::Lite.

      Exactly - my requirements in this case are much the same without a need for attachments. I have a module written that is working elsewhere without issue that I can simply drop in to the new project. The question was never about the Perl module...it was about recommendations for an MTA that will work with Perl.

      ...and the scripts also only talk to my MTA...

      What MTA do you use Corion?

        I use Exim 4, mainly because that is what comes with Debian as default (or what I install into Debian by default). For my uses, Exim 4 provides all I need.