thank you it worked perfectly!!
but now that its detecting the module, i am stuck at a new problem. my code is the same as above but now its showing ::
'Can't locate object method "new" via package "Email::Send::SMTP::Gmail" <perhaps you forgot to load "Email::Send::SMTP::Gmail"> at email1.pl line 5'
Re^2: Email an Attachment via Gmail
Replies are listed 'Best First'.
Lol... I think that Email::Send::SMTP::Gmail has a bug on the first line in v0.43. And taking a closer look at the module's test suite does nothing to instill confidence in the module; there are essentially no tests other than "Does the module load? Yes."
I can't right now, but try changing line one of the module from package Gmail; to package Email::Send::SMTP::Gmail;, and if that fixes your issue, file a bug report. ;)
Since the field for sending attachments is called -attachments (a plural), I assumed so, so I checked the documentation at Email::Send::SMTP::Gmail and found the examples provided therein to be pretty straightforward.