use Moose;
use Carp;
use Scalar::Util qw/ blessed /;
-use Data::Dumper;
extends 'Catalyst::View::Email';
-our $VERSION = '0.17';
-
+our $VERSION = '0.26_01';
+$VERSION = eval $VERSION;
=head1 NAME
Catalyst::View::Email::Template - Send Templated Email from Catalyst
%{$c->stash},
}
);
- warn "Email output: $output";
if ( ref $output ) {
croak $output->can('as_string') ? $output->as_string : $output;
}
The process method is called when the view is dispatched to. This creates the
multipart message and then sends the message contents off to
L<Catalyst::View::Email> for processing, which in turn hands off to
-L<Email::Send>.
+L<Email::Sender::Simple>.
=cut
return $self->$orig( $c, @args )
unless $c->stash->{$stash_key}->{template}
or $c->stash->{$stash_key}->{templates};
- warn "Stash: " . $stash_key;
# in case of the simple api only one
my @parts = ();
$c->stash->{$stash_key}->{parts} ||= [];
push @{ $c->stash->{$stash_key}->{parts} }, @parts;
- warn "Stash: " . Dumper $c->stash;
return $self->$orig($c);
};