I have following code to send an email in Perl:
#!/usr/bin/perl
use MIME::Lite;
$to = \'toid@domain.com\';
$cc = \'ccid@domain.com\';
$from = \'fromid@doma
The above worked when
my $smtpserver = 'smtp.gmail.com.';
my $smtpport = 587;
my $smtpuser = 'YourGmailHere@gmail.com';
my $smtppassword = 'password'; ## Plug in your password here
Hope this helps others.