NAME
Mail::Builder::Simple::HTML::Template - H::T plugin for Mail::Builder::Simple
VERSION
Version 0.03
SYNOPSIS
my $template = Mail::Builder::Simple::HTML::Template->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 HTML::Template.
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
INCOMPATIBILITIES
Not known incompatibilities.
BUGS AND LIMITATIONS
Not known bugs. If you find some, please announce.
SEE ALSO
Mail::Builder::Simple, HTML::Template
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.