MojoX::Renderer::Mail::Lite - Simple mail renderer for Mojo and Mojolicious without prerequires.

Default charset of subject and any data is UTF-8.

Default transfer encoding is base64.


SYNOPSIS

  #!/usr/bin/perl
  
  use Mojolicious::Lite;
  use MojoX::Renderer::Mail::Lite;

  app->renderer->add_handler(
    mail => MojoX::Renderer::Mail::Lite->build(
      from => 'sharifulin@gmail.com',
    )
  );

  get '/simple' => sub {
    my $self = shift;

    $self->render(
      handler => 'mail',

      to      => 'sharifulin@gmail.com',
      subject => 'Тест',
      msg     => 'Привет!',
    );

    $self->render_text('OK');
  };

  get '/render' => sub {
    my $self = shift;

    $self->render(
      handler => 'mail',

      to      => 'sharifulin@gmail.com',
      subject => 'Тест render',
      msg     => $self->render_partial('render', format => 'mail'),
    );

    $self->render(format => 'html');
  } => 'render';

  app->start;

  __DATA__

  @@ render.html.ep
  <p>Привет render!</p>

  @@ render.mail.ep
  Привет render!


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 MojoX::Renderer::Mail::Lite

You can also look for information at:

    RT, CPAN's request tracker
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=MojoX-Renderer-Mail-Lite

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/MojoX-Renderer-Mail-Lite

    CPAN Ratings
        http://cpanratings.perl.org/d/MojoX-Renderer-Mail-Lite

    Search CPAN
        http://search.cpan.org/dist/MojoX-Renderer-Mail-Lite/


LICENSE AND COPYRIGHT

Copyright (C) 2010 AnatolySharifulin

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.

