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

Dear Monks,

We use Mail::Sender in a lot of scripts. Thanks, Jenda!

Now our mail server doesn't support TLS 1.0 and 1.1 anymore but TLS 1.2 only. Unfortunately, I couldn't find a way of forcing Mail::Sender to use TLS 1.2. Is there anyone who can share an example on how to accomplish this?

Best regards,
MPIDR

Replies are listed 'Best First'.
Re: Mail::Sender and TLS 1.2
by hippo (Archbishop) on Apr 15, 2020 at 10:12 UTC
      Yes, I am aware that Mail::Sender is deprecated and we will switch to another solution on the long run. For new, having TLS 1.2 with Mail::Sender would help a lot.
Re: Mail::Sender and TLS 1.2
by MPIDR (Initiate) on Apr 15, 2020 at 13:23 UTC
    We now found that this combination is working with our internal mail server:

    $sender = new Mail::Sender({auth_encoded => 0, ssl_version => 'TLSv1_2'});

    Of course all other parameters as smtp, port, from, etc. need to get configured too.

    Best regards,
    MPIDR