[Catalyst-commits] r8764 -
trunk/examples/CatalystAdvent/root/2008/pen
zamolxes at dev.catalyst.perl.org
zamolxes at dev.catalyst.perl.org
Sat Dec 6 15:51:24 GMT 2008
Author: zamolxes
Date: 2008-12-06 15:51:24 +0000 (Sat, 06 Dec 2008)
New Revision: 8764
Modified:
trunk/examples/CatalystAdvent/root/2008/pen/6.pod
Log:
fixes
Modified: trunk/examples/CatalystAdvent/root/2008/pen/6.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2008/pen/6.pod 2008-12-06 15:47:02 UTC (rev 8763)
+++ trunk/examples/CatalystAdvent/root/2008/pen/6.pod 2008-12-06 15:51:24 UTC (rev 8764)
@@ -5,7 +5,7 @@
recovery emails, monthly newsletter, here's your order, invoice
attached. The works.
-L<Catalyst::View::Email> is the pretty much standard way to send email
+L<Catalyst::View::Email> is the standard way to send email
from Catalyst apps. So you can start removing that nasty email sending
code from your controllers now ;)
@@ -13,17 +13,16 @@
Well, first things first, install L<Catalyst::View::Email> from CPAN.
-Now let's start building our app. Not being very original , I decided to
-go with a Christmas theme: this will allow people to let their would-be
+Now let's start building our app. Not being very original, I decided to
+go with a Christmas theme: the app will allow people to let their would-be
Santa know what they want for Christmas. So we'll need the user's email and
name, Santa's email and a description for the gift. Wrap all this in an
email and deliver to Santa :)
Obviously I'll just focus on the email part, so I'll leave important stuff
like input validation or DOS protection (you don't want some kiddie sending
-gazillions of emails through your app) as an exercise to the reader :)
+gazillions of emails through your app) as an exercise to the reader.
-
Here goes:
catalyst.pl SantaLetter
@@ -109,7 +108,7 @@
=head2 Using an email template
So now you know how to quickly send emails from Catalyst. But stuffing
-that message buddy in a string is rather dirty. This is where
+that message body in a string is rather dirty. This is where
L<Catalyst::View::Email::Template> comes handy. It will use your default
view to render a template, assemble a multi-part email using
L<Email::MIME::Creator> and send it out.
@@ -159,12 +158,12 @@
Merry X-mas,
Santa's helpers
-Now you can change your email templates without touching the controller code. Cool!
+Now you can change your email templates without touching the controller code. Neat!
=head2 What now?
You probably want more features, like sending HTML email or attaching files.
-L<Catalyst::View::Email> handles these things as well, instead of directly setting
+L<Catalyst::View::Email> handles these things well: instead of directly setting
the email body, you can pass an arrayref with Email::Mime parts , and there's
a nice example in the documentation.
@@ -174,4 +173,5 @@
=head1 AUTHOR
Bogdan Lucaciu <bogdan at sinapticode.ro>
+
Sinapticode
More information about the Catalyst-commits
mailing list