Hi all,

I'm trying to use Catalyst::View::Email::Template but am having some trouble with it picking up my yml configuration options.
in myapp.yml I have


View::Email::Template:
        content_type: multipart/alternative
        template_prefix: email
        stash_key: sendemail
        sender:
            method:     SMTP
            host:       localhost




d::dumper of $self->config in V:E:Template->process;

$VAR1 = {
          'stash_key' => 'email',
          'template_prefix' => ''
        };


d:dumper of $self in V:E:Template->process



$VAR1 = bless( {
                 'content_type' => 'multipart/alternative',
                 'mailer' => bless( {
                                      '_plugin_list' => {
'IO' => 'Email::Send::IO', 'NNTP' => 'Email::Send::NNTP', 'Qmail' => 'Email::Send::Qmail', 'SMTP' => 'Email::Send::SMTP', 'Sendmail' => 'Email::Send::Sendmail', 'Test' => 'Email::Send::Test'
                                                        },
                                      'mailer' => 'SMTP',
                                      'mailer_args' => []
                                    }, 'Email::Send' ),
                 'sender' => {
                               'host' => 'localhost',
                               'method' => 'SMTP'
                             },
                 'stash_key' => 'sendemail',
                 'template_prefix' => 'email'
               }, 'ZPM::View::Email::Template' );



as you can see my options are in the object itself but when config gets called for the correct stash key it's empty. please let know what i'm doing wrong.




TIA,

Alan




_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to