[Bast-commits] r9904 - ironman/IronMan-Web/branches/idn-20110706/lib/IronMan/Web/Controller

idn at dev.catalyst.perl.org idn at dev.catalyst.perl.org
Wed Jul 6 16:38:53 GMT 2011


Author: idn
Date: 2011-07-06 16:38:53 +0000 (Wed, 06 Jul 2011)
New Revision: 9904

Modified:
   ironman/IronMan-Web/branches/idn-20110706/lib/IronMan/Web/Controller/Root.pm
Log:
Change to use a template for the body of the email

Modified: ironman/IronMan-Web/branches/idn-20110706/lib/IronMan/Web/Controller/Root.pm
===================================================================
--- ironman/IronMan-Web/branches/idn-20110706/lib/IronMan/Web/Controller/Root.pm	2011-07-06 16:38:32 UTC (rev 9903)
+++ ironman/IronMan-Web/branches/idn-20110706/lib/IronMan/Web/Controller/Root.pm	2011-07-06 16:38:53 UTC (rev 9904)
@@ -186,12 +186,18 @@
             try {
                 $feed = $c->model('FeedDB::Feed')->find( { owner => $email } );
                 $c->log->info( 'found key: ' . $feed->id );
+
+                $c->stash( feed => $feed );
+
+                my $body = $c->view('TTNoWrapper')->render( $c, "email/retrieve_key.tt" );
+                $c->log->info( "Got body text:\n$body");
+
                 $c->stash(
                     email => {
                         to      => $email,
-                        from    => 'me at dhoss.net',
+                        from    => $c->config->{'email'},
                         subject => 'Your IronMan Blog Key',
-                        body    => $c->view('TTNoWrapper')->render( $c, "email/retrieve_key.tt" ),
+                        body    => $body,
                     },
                 );
 




More information about the Bast-commits mailing list