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'
in reply to Re: Email an Attachment via Gmail
in thread Email an Attachment via Gmail