Juan José San Martín > Email-Send-SMTP-Gmail-0.32 > Email::Send::SMTP::Gmail

Download:
Email-Send-SMTP-Gmail-0.32.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.32   Source   Latest Release: Email-Send-SMTP-Gmail-0.85

NAME ^

Email::Send::SMTP::Gmail - Sends emails with attachments using Google's SMTP (or any other SMTP server)

SYNOPSIS ^

   use strict;
   use warnings;

   use Email::Send::SMTP::Gmail;

   my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com',
                                           -login=>'whateveraddress@gmail.com',
                                           -pass=>'whatever_pass');

   $mail->send(-to=>'target@xxx.com',
               -subject=>'Hello!',
               -charset=>'UTF-8'
               -verbose=>'1',
               -body=>'Just testing it',
               -attachments=>'full_path_to_file');

   $mail->bye;

DESCRIPTION ^

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.

new(-login=>'', -pass=>'' [, -debug=>''])

It creates the object and opens a session with the SMTP.

send(-to=>'', [-subject=>'', -cc=>'', -bcc=>'', -replyto=>'', -charset=>'', -body=>'', -attachments=>''])

It composes and sends the email in one shot

to, cc, bcc: comma separated email addresses
attachments: comma separated files with full path
bye

Closes the SMTP session

BUGS ^

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.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Email::Send::SMTP::Gmail

You can also look for information at:

AUTHORS ^

Martin Vukovic, <mvukovic at microbotica.es>

Juan Jose 'Peco' San Martin, <peco at cpan.org>

COPYRIGHT ^

Copyright 2011 Microbotica

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: