in reply to 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:

WAIT!

MIME::Lite is not recommended by its current maintainer. There are a number of alternatives, like Email::MIME or MIME::Entity and Email::Sender, which you should probably use instead. MIME::Lite continues to accrue weird bug reports, and it is not receiving a large amount of refactoring due to the availability of better alternatives. Please consider using something else.


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: MTA for Perl
by Bod (Parson) on Mar 18, 2024 at 21:27 UTC
    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.

      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?