in reply to Send mail from gmail SMTP

You can also check Email::Send::SMTP::TLS. It basically wraps Net::SMTP::TLS.