Maurice Aubrey > Text-Forge-2.16 > Text::Forge::Mail

Download:
Text-Forge-2.16.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source   Latest Release: Text-Forge-4.01

NAME ^

Text::Forge::Mail - e-mail templating system

SYNOPSIS ^

  use Text::Forge::Mail;

  my $forge = Text::Forge::Mail->new;
  $forge->to('maurice@lovelyfilth.com');
  $forge->subject('Make Money Fast!!!!!');
  $forge->send('message.tf');

DESCRIPTION ^

This module sends templated e-mails. It is a subclass of the Mail::Send, which is itself a subclass of Mail::Mailer.

The mailer() method can be used to get/set the parameters that are passed to the Mail::Mailer constructor. This lets you specify the mailer to use. If you don't specify it, the class will look around and use whatever mailer it finds.

  $forge->mailer('sendmail'); # explicit
  $forge->send('message.tf');

Alternatively, if you want to change the defaults, you can override mailer() in a subclass or set the @Text::Forge::Mail::MAILER global.

BUGS ^

The trap_send() method does not include the mail headers.

SEE ALSO ^

Text::Forge, Mail::Send, Mail::Mailer

AUTHORS ^

Maurice Aubrey <maurice@lovelyfilth.com>