in reply to Re: Mail Sending Issue
in thread Mail Sending Issue
Already Tried.
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 Error
Argument "login" isn't numeric in subtraction (-) at Mail.pl line 6. Argument "pass" isn't numeric in subtraction (-) at Mail.pl line 6. Argument "ramya.a@jouve.in" isn't numeric in subtraction (-) at Mail.p +l line 6. auth(username, password) at C:/Perl/site/lib/Net/SMTPS.pm line 165.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Mail Sending Issue
by poj (Abbot) on Mar 02, 2016 at 09:04 UTC | |
by RamyaArulkumar (Initiate) on Mar 02, 2016 at 09:42 UTC | |
by Corion (Patriarch) on Mar 02, 2016 at 10:31 UTC |