| Jifty-Plugin-Feedback documentation | Contained in the Jifty-Plugin-Feedback distribution. |
Jifty::Plugin::Feedback - Plugin to provides a feedback box
This plugin provides a "feedback box" for your app.
Add to your app's config:
Plugins:
- Feedback:
from: defaultsender@example.com
to: recipient@example.com
# optional
notification: YourApp::Notification::Feedback
Add to your app's UI where you want the feedback box:
show '/feedback/request_feedback';
Initializes the Feedback object. Takes a paramhash with keys from and to,
which are email addresses. The optional notification key is used to
override the plugin's default Jifty::Plugin::Feedback::Notification when
sending mail.
Jesse Vincent, jesse@bestpractical.com
This plugin is copyright 2007-2011 Best Practical Solutions, LLC.
This plugin is distributed under the same terms as Perl itself.
| Jifty-Plugin-Feedback documentation | Contained in the Jifty-Plugin-Feedback distribution. |
use strict; use warnings; package Jifty::Plugin::Feedback; use base qw/Jifty::Plugin Class::Accessor::Fast/; our $VERSION = '0.05';
__PACKAGE__->mk_accessors(qw(from to notification));
sub init { my $self = shift; my %opt = @_; $self->from($opt{'from'}); $self->to($opt{'to'}); $self->notification($opt{'notification'} || 'Jifty::Plugin::Feedback::Notification'); }
1;