Hi, I have a patch from Ilmari that fixes this. Among some other issues, that will be fixed in this next release which I hope to get out today.
On Feb 11, 2013, at 7:44 AM, Anthony Gladdish <[email protected]> wrote: > Hi, > > Having problems when upgrading from Email::Sender 0.120002 -> 1.300003. > > While v1.300003 compiles and "make test" passes, it appears to be no longer > working with Catalyst::View::Email ( v0.31 + v0.32 ): > > # 1. Catalyst app config: > > View::Email::Template: > stash_key: 'email' > template_prefix: 'email' > default: > content_type: 'text/plain' > charset: 'utf-8' > view: 'TT' > sender: > mailer: Test > > > # 2. some action that sends the email: > > $c->stash->{email} = { > to => 'blah', > from => 'blah', > subject => 'blah', > template => 'blah.tt2', > }; > $c->forward( $c->view('Email::Template') ); > if ( scalar( @{ $c->error } ) ) { > $c->error('blah'); > $c->detach('/end'); > } > > > # 3. Test: > > use Test::More; > use Email::Sender::Simple; > > BEGIN { > $ENV{EMAIL_SENDER_TRANSPORT} = 'Test'; > } > > # some button click that calls action above that sends email <- test failing > here. > > my @emails = Email::Sender::Simple->default_transport->deliveries; > > > # Error: > > Caught exception in MyApp::View::Email::Template->process "Attribute > (_mailer_obj) does not pass the type constraint because: Validation failed > for 'Email::Sender::Transport' with value > Email::Sender::Transport::Test=HASH(0x2b875fe017e0) at accessor > Catalyst::View::Email::_mailer_obj (defined at ~/ > locallib/lib/perl5/Catalyst/View/Email.pm line 21) line 18. > > Anyone else getting these sorts of errors? > This test script passed before, until upgrading. Is this something you can > help with? > > Regards, > Anthony > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
