NAME

Mojolicious::Plugin::Mail - Mojolicious plugin for send mail.

Uses MIME::Lite and MIME::EncWords.

SYNOPSIS

 # Mojolicious
 $self->plugin(mail => {
   from     => '[email protected]',
   encoding => 'base64',
   type     => 'text/html',
   how      => 'sendmail',
   howargs  => [ '/usr/sbin/sendmail -t' ],
 });

 # Mojolicious::Lite
 plugin mail => { ... };

 # in controller
 $self->helper('mail',
   mail => {
     To      => '[email protected]',
     Subject => 'Test email',
     Data    => '<p>Привет!</p>',
   }
 );

See 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.