From: Karen Etheridge Date: Tue, 11 Aug 2015 20:33:59 +0000 (-0700) Subject: remove these files which are generated X-Git-Tag: v0.09~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Email.git;a=commitdiff_plain;h=909bcb4ef97de1be33163b06184c922be8dd1cb2 remove these files which are generated --- diff --git a/MANIFEST b/MANIFEST deleted file mode 100644 index 7adb2f4..0000000 --- a/MANIFEST +++ /dev/null @@ -1,9 +0,0 @@ -Changes -Email.pm -Makefile.PL -MANIFEST This list of files -META.yml Module meta-data (added by MakeMaker) -README -t/01use.t -t/02pod.t -t/03podcoverage.t diff --git a/META.yml b/META.yml deleted file mode 100644 index df13d1c..0000000 --- a/META.yml +++ /dev/null @@ -1,14 +0,0 @@ -# http://module-build.sourceforge.net/META-spec.html -#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# -name: Catalyst-Plugin-Email -version: 0.08 -version_from: Email.pm -installdirs: site -requires: - Catalyst: 2.99 - Email::MIME: 0 - Email::MIME::Creator: 0 - Email::Send: 0 - -distribution_type: module -generated_by: ExtUtils::MakeMaker version 6.17 diff --git a/README b/README deleted file mode 100644 index e0e8550..0000000 --- a/README +++ /dev/null @@ -1,89 +0,0 @@ -NAME - Catalyst::Plugin::Email - (DEPRECATED) Send emails with Catalyst - -SYNOPSIS - - # please use Email::MIME::Kit or Catalyst::View::Email::Template instead - - use Catalyst 'Email'; - - __PACKAGE__->config->{email} = [qw/SMTP smtp.oook.de/]; - - $c->email( - header => [ - From => 'sri@oook.de', - To => 'sri@cpan.org', - Subject => 'Hello!' - ], - body => 'Hello sri' - ); - -DESCRIPTION - Send emails with Catalyst and Email::Send and Email::MIME::Creator. - -USING WITH A VIEW - A common practice is to handle emails using the same template language - used for HTML pages. This can be accomplished by pairing this plugin - with Catalyst::Plugin::SubRequest. - - Here is a short example of rendering an email from a Template Toolkit - source file. The call to $c->subreq makes an internal call to the - render_email method just like an external call from a browser. The - request will pass through the end method to be processed by your View - class. - - sub send_email : Local { - my ( $self, $c ) = @_; - - $c->email( - header => [ - To => 'me@localhost', - Subject => 'A TT Email', - ], - body => $c->subreq( '/render_email' ), - ); - # redirect or display a message - } - - sub render_email : Local { - my ( $self, $c ) = @_; - - $c->stash( - names => [ qw/andyg sri mst/ ], - template => 'email.tt', - ); - } - - And the template: - - [%- FOREACH name IN names -%] - Hi, [% name %]! - [%- END -%] - - -- - Regards, - Us - - Output: - - Hi, andyg! - Hi, sri! - Hi, mst! - - -- - Regards, - Us - -METHODS - email -SEE ALSO - Catalyst, Catalyst::Plugin::SubRequest, Email::Send, - Email::MIME::Creator - -AUTHOR - Sebastian Riedel, "sri@cpan.org" - -COPYRIGHT - This program is free software, you can redistribute it and/or modify it - under the same terms as Perl itself. -