anujsethi91 has asked for the wisdom of the Perl Monks concerning the following question:
guys i used cpan Gmail, and it worked just fine, but now i'm getting a whole new kind of an error, 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' please helpuse strict; use warnings; use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', -login=>'myid', -pass=>'mypasswrd'); $mail->send(-to=>'sendtoid', -subject=>'Hello!', -body=>'Just testing +it', -attachments=>'C:/strawberry/perl/test.txt'); $mail->bye;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Email an Attachment via Gmail
by davido (Cardinal) on Apr 05, 2013 at 08:18 UTC | |
by 1nickt (Canon) on Sep 01, 2015 at 17:00 UTC | |
|
Re: Email an Attachment via Gmail
by hdb (Monsignor) on Apr 05, 2013 at 12:12 UTC | |
by anujsethi91 (Initiate) on Apr 08, 2013 at 04:39 UTC | |
by davido (Cardinal) on Apr 08, 2013 at 05:03 UTC | |
by anujsethi91 (Initiate) on Apr 08, 2013 at 05:50 UTC | |
by davido (Cardinal) on Apr 08, 2013 at 06:05 UTC | |
| |
by Anonymous Monk on Sep 01, 2015 at 16:20 UTC | |
by davido (Cardinal) on Sep 01, 2015 at 16:49 UTC | |
by Corion (Patriarch) on Sep 01, 2015 at 16:46 UTC | |
|
Re: Email an Attachment via Gmail
by prashantktyagi (Scribe) on Apr 05, 2013 at 12:03 UTC |