CAM-EmailTemplate

Last update: v0.92, 2005-04-22

This module extends the CAM::Template search-and-replace API to with a send() method to enable simplified delivery of automated but customized emails. This module is NOT intended for spam delivery (and it's definitely not very efficient for that purpose).

See the documentation for templating examples.

This module most closely resembles Mail::Send with the sendmail option. It has the following advantages:

* Integration of templating * More readable code (IMHO)

and the following disadvantages:

* Only supports sendmail delivery (but see also CAM::EmailTemplate::SMTP) * Doesn't offer an easy-to-understand API for building the header * Fewer mail delivery options

If you wish to take advantage of CAM::Template's ability to use a custom template syntax, then you should create a new subclass that inherits from both your custom template and from this module. A simple example:

package MyTemplate; use CAM::Template; our @ISA = qw(CAM::Template);

sub patterns { my $pkg = shift; return { $pkg->SUPER::patterns(), # include syntax: include => qr//, }; }

package MyEmailTemplate; use MyTemplate; use CAM::EmailTemplate; our @ISA = qw(MyTemplate CAM::EmailTemplate);

License | Files | Date
Perl | CAM-EmailTemplate-0.92.tgz (MD5) CAM-EmailTemplate-0.92.zip (MD5) CAM-EmailTemplate-0.92-docs | Fri Apr 22 22:05:34 2005
GPL | CAM-EmailTemplate-0.91.tgz (MD5) CAM-EmailTemplate-0.91.zip (MD5) CAM-EmailTemplate-0.91-docs | Fri Apr 9 17:47:40 2004
Clotho | CAM-EmailTemplate-0.91.tgz (MD5) CAM-EmailTemplate-0.91.zip (MD5) CAM-EmailTemplate-0.91-docs | Fri Apr 9 17:47:40 2004
GPL | CAM-EmailTemplate-0.90.tgz (MD5) CAM-EmailTemplate-0.90.zip (MD5) CAM-EmailTemplate-0.90-docs | Tue Oct 7 14:55:09 2003
Clotho | CAM-EmailTemplate-0.90.tgz (MD5) CAM-EmailTemplate-0.90.zip (MD5) CAM-EmailTemplate-0.90-docs | Tue Oct 7 14:55:09 2003

Perl License

This software is released by Clotho Advanced Media, Inc. under the same terms as Perl itself. That means that it is dual-licensed under the Artistic license and the GPL, and that you can redistribute it and/or modify it under the terms of either or both of those licenses. Copies of this license are available from Clotho or view the LICENSE file directly.

GPL License

Releases of this software are available under the General Public License, v2. Copies of this license are available from Clotho and GNU.

Clotho License

Releases of this software are available under commercial license directly from Clotho. Please contact us at info@clotho.com to purchase a license.