Email::Send::SMTP::Gmail - Sends emails with attachments using Google's SMTP
use strict; use warnings; use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'gmail.com', -login=>'whateveraddress@gmail.com', -pass=>'whatever_pass'); $mail->send(-to=>'target@xxx.com', -subject=>'Hello!', -verbose=>'1', -body=>'Just testing it', -attachments=>'full_path_to_file'); $mail->bye;
Simple module to send emails through Google's SMTP with or without attachments. Works with regular Gmail accounts as with Google Apps (your own domains). It supports basic functions such as CC, BCC, ReplyTo.
It creates the object and opens a session with the SMTP.
It composes and sends the email in one shot
Closes the SMTP session
Please report any bugs or feature requests to bug-email-send-smtp-gmail at rt.cpan.org or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Email-Send-SMTP-Gmail. You will automatically be notified of the progress on your bug as we make the changes.
bug-email-send-smtp-gmail at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Email::Send::SMTP::Gmail
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Email-Send-SMTP-Gmail
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Email-Send-SMTP-Gmail
CPAN Ratings
http://cpanratings.perl.org/d/Email-Send-SMTP-Gmail
Search CPAN
http://search.cpan.org/dist/Email-Send-SMTP-Gmail/
Martin Vukovic, <mvukovic at microbotica.es>
<mvukovic at microbotica.es>
Juan Jose 'Peco' San Martin, <peco at cpan.org>
<peco at cpan.org>
Copyright 2010 Microbotica
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Email::Send::SMTP::Gmail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Send::SMTP::Gmail
CPAN shell
perl -MCPAN -e shell install Email::Send::SMTP::Gmail
For more information on module installation, please visit the detailed CPAN module installation guide.