Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Email CPAN distribution.

Report information
The Basics
Id: 23958
Status: rejected
Priority: 0/
Queue: Catalyst-Plugin-Email

Owner: Nobody in particular
Requestors: chris+rt [...]

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)

Subject: [REGRESSION] New 'To' check inconsistent with docs in 0.06
Download (untitled) / with headers
text/plain 553b
As of 0.06, there is a check in email() for a 'To' field. However, this checks the main argument list, not the 'headers' array. So the code in the documentation all fails: $c->email(header => [To => ''], body => 'Hi!'); The code says: my $email = $_[1] ? {@_} : $_[0]; croak "Can't send mail without recipient" unless length($email->{To}); In this example, $email has keys qw(header body), not 'To'. I haven't tested enough to know if the mistake is in the code or the documentation... Thanks, Chris
This module is now deprecated in favour of Email::MIME::Kit or Catalyst::View::Email::Template.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to