use strict; use warnings; use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com', -login=>'IHipschman@gmail.com', -pass=>'mypassword'); $mail->send(-to=>'IHipschman@yahoo.com', -subject=>'Hello!', -body=>'Just testing it
Bye!',-contenttype=>'text/html'); $mail->bye; #### C:\Users\Ivan\Documents\BSA\EMAIL\GmailSend>perl tryitmodified.pl Could not connect to SMTP server Can't call method "send" without a package or object reference at tryitmodified. pl line 8.