Sending on port 465 indicates that you are sending on a SSL/TLS port.
You may use Net::SMTP::SSL for sending the mail. I do not think that gmail supports SMTP without SSL and I also think that Mime::Lite can not send mail via SSL.

In reply to Re: Send mail from gmail SMTP by weismat
in thread Send mail from gmail SMTP by Aboveyou

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":