I have some, but limited, experience with PERL. I am trying use Email::Send::SMTP::Gmail to send emails. I tried using the sample code provided with the module but can't get it to work. My OS is Windows 8.1, 64 bit. Here is the code I used (but with my real password:
my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com',
-body=>'Just testing it<br>Bye!',-contenttype=>'text/html'
The response I receive is:
Could not connect to SMTP server
Can't call method "send" without a package or object reference at tryi
pl line 8.
Can anyone suggest what the problem is? I have tried running from an administrator level command prompt and turning off the Windows firewall.