0.06
- Added more extensive docs on config and usage.
(Carl Franks)
+ - Make it croak if recipient is empty.
0.05 Thu Nov 17 22:00:00 2005
- Added docs on sending email using a TT template.
use Email::Send;
use Email::MIME;
use Email::MIME::Creator;
+use Carp qw/croak/;
our $VERSION = '0.06';
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};