bumped version
[catagits/Catalyst-View-Email.git] / lib / Catalyst / View / Email.pm
index 70991c2..e12ad73 100644 (file)
@@ -8,7 +8,7 @@ use Email::Sender::Simple qw/ sendmail /;
 use Email::MIME::Creator;
 extends 'Catalyst::View';
 
-our $VERSION = '0.13.01';
+our $VERSION = '0.19';
 
 has 'mailer' => (
     is      => 'rw',
@@ -331,10 +331,9 @@ sub generate_message {
 
     # setup the attributes (merge with defaultis)
        $attr->{attributes} = $self->setup_attributes($c, $attr->{attributes});
-    return Email::Simple->create(
-        header => $attr->{header},
-        body   => $attr->{body}
-    );
+    Email::MIME->create(
+           %$attr
+       );
 }
 
 =back
@@ -385,6 +384,8 @@ Roman Filippov
 
 Lance Brown <lance@bearcircle.net>
 
+Devin Austin <dhoss@cpan.org>
+
 =head1 COPYRIGHT
 
 Copyright (c) 2007 - 2009