in reply to Re^4: Mail Sending Issue
in thread Mail Sending Issue

The documentation of the module is a bit confused, but the usage in the documentation is:

my ($mail,$error)=Email::Send::SMTP::Gmail->new( ... )

I'm not sure why you're getting the error as the first argument. The real cause for the error is still in the message. Maybe you should read it.