]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/SendSMS.pm
SMS texting
[Evergreen.git] / Open-ILS / src / perlmods / lib / OpenILS / Application / Trigger / Reactor / SendSMS.pm
1 package OpenILS::Application::Trigger::Reactor::SendSMS;
2 use strict; use warnings;
3 use Error qw/:try/;
4 use Data::Dumper;
5 use Email::Send;
6 use Email::Simple;
7 use OpenSRF::Utils::SettingsClient;
8 use OpenILS::Application::Trigger::Reactor;
9 use OpenSRF::Utils::Logger qw/:logger/;
10 use Encode;
11 $Data::Dumper::Indent = 0;
12
13 use base 'OpenILS::Application::Trigger::Reactor::SendEmail';
14
15 # This module is just another name for SendEmail, as a way to get around the
16 # "ev_def_owner_hook_val_react_clean_delay_once" index/constraint on the table
17 # action.event_definition.  The template fed to SendSMS is responsible for
18 # using helpers.get_sms_email_gateway to, for example,  convert .sms_carrier
19 # and .sms_notify off of a hold into an email address.
20
21 1;