X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FEmail.pm;h=fba2330b1d397b54a4ebc534fa84a8596091ca6b;hb=95629d4625192029f3f84a42950f87792c6552c8;hp=b5593a43f4805099768f9b590e0294e5db9d5c15;hpb=229f9fdd4c8e9381750af14937036eb6da0ebe10;p=catagits%2FCatalyst-View-Email.git diff --git a/lib/Catalyst/View/Email.pm b/lib/Catalyst/View/Email.pm index b5593a4..fba2330 100644 --- a/lib/Catalyst/View/Email.pm +++ b/lib/Catalyst/View/Email.pm @@ -11,7 +11,7 @@ use Email::MIME::Creator; use base qw|Catalyst::View|; -our $VERSION = '0.05'; +our $VERSION = '0.07'; __PACKAGE__->mk_accessors(qw(sender stash_key content_type mailer)); @@ -190,7 +190,8 @@ sub process { my $message = Email::MIME->create(%mime); if ( $message ) { - $self->mailer->send($message); + my $return = $self->mailer->send($message); + croak "$return" if !$return; } else { croak "Unable to create message"; } @@ -218,6 +219,8 @@ Daniel Westermann-Clark Simon Elliott - ::Template +Roman Filippov + =head1 LICENSE This library is free software, you can redistribute it and/or modify it under