in reply to Re^3: Mail Sending Issue
in thread Mail Sending Issue
I have tried with commas
use strict; use warnings; use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', -layer=>'ssl', -port=>465,, -verbose => '1', -login=>'mylogin', -pass=>'mypassword'); $mail->send(-to=>'toaddress', -subject=>'Hello!', -verbose=>'1', -body=>'Just testing it', -attachments=>''); $mail->bye;
But got the below Message
Can't locate object method "send" via package "5.7.14 <https://account +s.google.c om/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtfM 5.7.14 a4MT19UHD3fGpNjVTC2ncPlLiH4tdaAg7MSNDZARyumqy0KXDhq9MwPgfgH3TM2 +gnR6Znd 5.7.14 7QKaN4EfHRBclrJB7EKrepBBL4o26oJ6eBQZAEvQz81b-DV382h_El67CjBL6cq +YDSmsy3 5.7.14 v8R5dzea2LOGfUxuPFdeBoXmXV4fVsXvfWD3hBCyw52zNnGhcrQN_igcHPGauOt +PwjYrPd 5.7.14 7yzC66H8uYsnwpU-IuVwAjG1Owao> Please log in via your web browse +r and 5.7.14 then try again. 5.7.14 Learn more at " (perhaps you forgot to load "5.7.14 <https://accounts.google.com/Con +tinueSignI n?sarp=1&scc=1&plt=AKgnsbtfM 5.7.14 a4MT19UHD3fGpNjVTC2ncPlLiH4tdaAg7MSNDZARyumqy0KXDhq9MwPgfgH3TM2 +gnR6Znd 5.7.14 7QKaN4EfHRBclrJB7EKrepBBL4o26oJ6eBQZAEvQz81b-DV382h_El67CjBL6cq +YDSmsy3 5.7.14 v8R5dzea2LOGfUxuPFdeBoXmXV4fVsXvfWD3hBCyw52zNnGhcrQN_igcHPGauOt +PwjYrPd 5.7.14 7yzC66H8uYsnwpU-IuVwAjG1Owao> Please log in via your web browse +r and 5.7.14 then try again. 5.7.14 Learn more at "?) at Mail.pl line 13..google.com/mail/answer/78754 ll7sm51529054pab. +6 - gsmtp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Mail Sending Issue
by Corion (Patriarch) on Mar 02, 2016 at 10:31 UTC |