in reply to Send mail from gmail SMTP

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.