WWW::Gmail - Gmail interface
Usage:
use WWW::Gmail;
my $gmail = WWW::Gmail->new( mail => USERNAME@gmail.com, password => PASS);
Gmail interface.
$total_mails = $gmail->mailNumber; print "total_mails $total_mails \n";
Get the total number of mails
$gmail->deleteMails;
Delete all mail in the inbox
$body = $gmail->getbody(0); print "body $body \n";
Get the body of the mail N (N start in 0)
$subject = 'My subject'; $body = 'My Body'; $gmail->sendMail('ANOTHER_MAIL@gmail.com',$subject,$body);
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install WWW::Gmail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Gmail
CPAN shell
perl -MCPAN -e shell install WWW::Gmail
For more information on module installation, please visit the detailed CPAN module installation guide.