I am trying to use Email::Send::Gmail to send an email, but for some reason I am getting an error that it is not allowing me to connect.
The code is the standard exa
Just Upgrade your active Perl version.
Then Install following modules: ppm
#!/home/ben/software/install/bin/perl
use warnings;
use strict;
use Email::Send;
use Email::Send::Gmail;
use Email::Simple::Creator;
my $email = Email::Simple->create (
header => [
From => '@gmail.com',
To => '@gmail.com',
Subject => 'Make it simple',
],
body => 'buddy I got it ...',
);
my $sender = Email::Send->new
({
mailer => 'Gmail',
mailer_args =>
[
username => '',
password => '',
]
});
$sender->send ($email);