Add Email::Template for post-registratin email sending
Jess Robinson [Fri, 6 Jul 2012 15:58:43 +0000 (15:58 +0000)]
Makefile.PL
lib/stemmaweb.pm

index 61ba3b6..8462a43 100644 (file)
@@ -18,6 +18,7 @@ requires 'Catalyst::Model::KiokuDB';
 requires 'Catalyst::View::Download::Plain';
 requires 'Catalyst::View::JSON';
 requires 'Catalyst::View::TT';
+requires 'Catalyst::View::Email::Template';
 ## Auth:
 requires 'Catalyst::Plugin::Authentication';
 requires 'Catalyst::Plugin::Session';
index 1883f4b..bbe8d81 100644 (file)
@@ -101,6 +101,9 @@ __PACKAGE__->config(
         login_db_field => 'username',
         action_after_login => '/index',
        action_after_register => '/index', 
+       register_email_from  => '"MyApp" <somebody@example.com>',
+       register_email_subject => 'Confirm registration to stemmaweb',
+       register_email_template_plain => 'register-plain.tt',
         realm => 'default',
         login_fields => { openid => [qw/openid_identifier/],
                           default => [qw/username password remember/],