NAME
Mojolicious::Plugin::Mail - Mojolicious plugin for send mail.
Uses MIME::Lite and MIME::EncWords.
SYNOPSIS
# Mojolicious
$self->plugin(mail => {
from => 'sharifulin@gmail.com',
encoding => 'base64',
how => 'sendmail',
howargs => [ '/usr/sbin/sendmail -t' ],
});
# Mojolicious::Lite
plugin mail => { ... }; # second param is conf
# in controller
$self->helper('mail',
to => 'sharifulin@gmail.com',
subject => 'Test'm
data => 'use Perl or die;',
);
# in controller (new version of Mojolicious)
$self->mail(
to => 'sharifulin@gmail.com',
subject => 'Test',
data => 'use Perl or die;',
);
# in controller, using render
$self->mail(to => 'sharifulin@gmail.com');
# template: controller/action.mail.ep
% stash subject => 'Test';
use Perl or die;
See documentation of Mojolicious::Plugin::Mail on CPAN http://search.cpan.org/dist/Mojolicious-Plugin-Mail/
INSTALLATION
To install this module, run the following commands:
perl Build.PL
./Build
./Build test
./Build install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Mojolicious::Plugin::Mail
You can also look for information at:
RT, CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mojolicious-Plugin-Mail
AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Mojolicious-Plugin-Mail
CPAN Ratings
http://cpanratings.perl.org/d/Mojolicious-Plugin-Mail
Search CPAN
http://search.cpan.org/dist/Mojolicious-Plugin-Mail/
LICENSE AND COPYRIGHT
Copyright (C) 2010 Anatoly Sharifulin
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.