Appears as though authentication is failing, which is resulting in -1 being placed into the $mail variable instead of the actual object.
Try putting this immediately after the attempted object instantiation:
die $error if $mail == -1;In reply to Re: Email::Send::SMTP::Gmail issue
by stevieb
in thread Email::Send::SMTP::Gmail issue
by flieckster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |