The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::Builder::Simple::TT - Template-Toolkit plugin for Mail::Builder::Simple

VERSION

Version 0.03

SYNOPSIS

 my $template = Mail::Builder::Simple::TT->new($args, $vars);
 $template->process($template, $source);

DESCRIPTION

This module shouldn't be used directly, but as a plugin of Mail::Builder::Simple for sending email messages with the body or the attachments created using Template-Toolkit.

SUBROUTINES/METHODS

new

new() is the class constructor. It accepts 2 parameters: $args and $vars.

$args is a hashref with the options for TT. $vars is the hashref with the template variables.

process

process() processes the template. It accepts 2 parameters: $template and $source.

$source can be either "file" or "scalar". If $source eq "file", $template is the name of the template file. If $source eq "scalar", $template is the scalar variable that contains the template.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

This module doesn't require any configuration.

DEPENDENCIES

Template-Toolkit, Cwd, Exception::Died

INCOMPATIBILITIES

Not known incompatibilities.

BUGS AND LIMITATIONS

Not known bugs. If you find some, please announce.

SEE ALSO

Mail::Builder::Simple, Template-Toolkit

AUTHOR

Octavian Rasnita <orasnita@gmail.com>

LICENSE AND COPYRIGHT

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