X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Email.pm;h=d909b53f31fcd30377adad336f848174dbf7cb82;hb=b6568b039ee2c8e80350ccfadaad1c561733a2fc;hp=7945e66b4ce9a46d18b8d4b925d2932623ea481d;hpb=23938968d8d7f8b6761460e8aec8064a1055f139;p=catagits%2FCatalyst-Plugin-Email.git diff --git a/Email.pm b/Email.pm index 7945e66..d909b53 100644 --- a/Email.pm +++ b/Email.pm @@ -6,7 +6,7 @@ use Email::MIME; use Email::MIME::Creator; use Carp qw/croak/; -our $VERSION = '0.06'; +our $VERSION = '0.07'; =head1 NAME @@ -102,8 +102,6 @@ arrayref of Email::MIME objects. sub email { my $c = shift; my $email = $_[1] ? {@_} : $_[0]; - croak "Can't send mail without recipient" - unless length($email->{To}); $email = Email::MIME->create(%$email); my $args = $c->config->{email} || []; my @args = @{$args};