Install libnet-smtpauth-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-smtpauth-perl
Perl module that provides SMTP authentication (Net::SMTP_auth)
Net::SMTP_auth implements a client interface to the SMTP and ESMTP protocol AUTH service extension, enabling a perl5 application to talk to and authenticate against SMTP servers. . This module supplies a more powerful environment than Net::SMTP (provided by perl-modules).