Jifty::Plugin::Feedback::Notification - the default feedback email


Jifty-Plugin-Feedback documentation Contained in the Jifty-Plugin-Feedback distribution.

Index


Code Index:

NAME

Top

Jifty::Plugin::Feedback::Notification - the default feedback email

ARGUMENTS

Top

recipients
from
body

setup

Set up the subject


Jifty-Plugin-Feedback documentation Contained in the Jifty-Plugin-Feedback distribution.
use warnings;
use strict;

package Jifty::Plugin::Feedback::Notification;
use base qw/Jifty::Notification/;

sub setup {
    my $self = shift;
    $self->SUPER::setup(@_);

    # Subject: [AppName feedback] first 60 chars of message [set by the action]
    my $subject = "[".Jifty->config->framework('ApplicationName')." feedback] ";
    $subject .= $self->subject;
    $self->subject($subject);
}

1;