Damjan Pelemis > RWDE-573 > RWDE::PostMaster

Download:
RWDE-573.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 527   Source  

RWDE::Postmaster ^

This class implements methods that detail the sending of email. Both verp and standard emailing are implemented here, as well as methods for automatically reporting exceptions and hooks for assigning tickets to RT.

get_instance()

Return an instance of RWDE::Postmaster

initialize()

Initialize an instance of RWDE::Postmaster. This includes pulling some data from the config file in order to find an SMTP server and preparing to handle a mail template.

send_message ($smtp_sender, $smtp_recipient, $template)

Prepare or send a 1-to-1 message to the $smtp_recipient address, from $smtp_sender address, using $template as a template input and the $params to populate the template. To alter the header from/to etc, edit the template.

send_verp_message($smtp_sender, $recipients, $template)

Prepare or send a 1-to-many message to all the addresses contained within $recipients, from $smtp_sender address, using $template as a template input and the $params to populate the template. To alter the header from/to etc, edit the template.

send_support_message($topic, $question)

Prepare or send a message to the support queue requested within $topic, from a Sender (specified in config file) using support.tt as a template input. The $params are used to to populate the template. To alter the header from/to etc, edit the template.

This is a somewhat niche method utilized with pre-established support systems such as RT.

send_report_message($topic, $question, $template)

Prepare or send a message to the ErrorReport address specified in the config file, from Sender - also specified in the config file. Uses report.tt as a template input. The $params are used to to populate the template. To alter the header from/to etc, edit the template.

This method is extremely useful in addressing uncaught exceptions, if the system is configured correctly those messages will get sent via this method.

syntax highlighting: