Maroš Kollár > Games-Lacuna-Task > Games::Lacuna::Task::Role::Notify

Download:
Games-Lacuna-Task-2.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Games::Lacuna::Role::Notify - Send email notifications

SYNOPSIS ^

 package Games::Lacuna::Task::Action::MyTask;
 use Moose;
 extends qw(Games::Lacuna::Task::Action);
 with qw(Games::Lacuna::Task::Role::Notify);
 
 sub run {
     my ($self) = @_;
     $self->notify('Alarm!!','Something has happened');
 }

ACCESSORS ^

email

Recipient email

email_send

MIME::Lite send configuration

METHODS ^

notify

Sends an email notification

 $self->log($subject,$message);
syntax highlighting: