You can also check Email::Send::SMTP::TLS. It basically wraps Net::SMTP::TLS.
In reply to Re: Send mail from gmail SMTP by olus in thread Send mail from gmail SMTP by Aboveyou