Install libnet-smtp-tls-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-smtp-tls-perl
Perl SMTP client library supporting TLS and AUTH
Net::SMTP::TLS is a TLS and AUTH capable SMTP client library which offers an interface that users will find familiar from Net::SMTP. Net::SMTP::TLS implements a subset of the methods provided by that module, but certainly not (yet) a complete mirror image of that API.