From: Jess Robinson Date: Fri, 6 Jul 2012 15:58:43 +0000 (+0000) Subject: Add Email::Template for post-registratin email sending X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f74c36c456272ac5555aa9ecdd1ea3d37dcda20a;p=scpubgit%2Fstemmaweb.git Add Email::Template for post-registratin email sending --- diff --git a/Makefile.PL b/Makefile.PL index 61ba3b6..8462a43 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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'; diff --git a/lib/stemmaweb.pm b/lib/stemmaweb.pm index 1883f4b..bbe8d81 100644 --- a/lib/stemmaweb.pm +++ b/lib/stemmaweb.pm @@ -101,6 +101,9 @@ __PACKAGE__->config( login_db_field => 'username', action_after_login => '/index', action_after_register => '/index', + register_email_from => '"MyApp" ', + 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/],