| 1 | package Jifty::Plugin::JapaneseNotification; | ||
| 2 | |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use base qw/Jifty::Plugin/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | our $VERSION = '0.01'; | |
| 9 | |||
| 10 | =encoding utf8 | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Jifty::Plugin::JapaneseNotification - Send emails from Jifty with Japanese character code | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | Add the following to your site_config.yml | ||
| 19 | |||
| 20 | framework: | ||
| 21 | Plugins: | ||
| 22 | - JapaneseNotification: {} | ||
| 23 | |||
| 24 | in your application | ||
| 25 | |||
| 26 | use utf8; | ||
| 27 | |||
| 28 | my $notification = | ||
| 29 | Jifty->app_class('Notification', 'ISO2022JP')->new( | ||
| 30 | from => 'Pikari <pi@null.in>', | ||
| 31 | to => 'Keronyo <ke@null.in>', | ||
| 32 | subject => 'Hello!', | ||
| 33 | body => 'FumoFumo--', | ||
| 34 | ); | ||
| 35 | $notification->send; | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | =head1 AUTHOR | ||
| 40 | |||
| 41 | Tomohiro Hosaka, C<< <bokutin at bokut.in> >> | ||
| 42 | |||
| 43 | =head1 COPYRIGHT & LICENSE | ||
| 44 | |||
| 45 | Copyright 2008 Tomohiro Hosaka, all rights reserved. | ||
| 46 | |||
| 47 | This program is free software; you can redistribute it and/or modify it | ||
| 48 | under the same terms as Perl itself. | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 2 | 1; # End of Jifty::Plugin::JapaneseNotification | |