From 535279130c329db2c3bcf717124991f5d825a0ec Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 17 Jan 2007 17:29:28 +0000 Subject: [PATCH] using the bounced email setting as the sender when available git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6778 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm index 75b7ab14c1..5d0e3b3554 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm @@ -337,6 +337,14 @@ sub flesh_template { my $reply_to = $self->pickup_lib->email; $reply_to ||= $sender; + # if they have an org setting for bounced emails, use that as the sender address + if( my $set = $self->editor->search_actor_org_unit_setting( + { name => OILS_SETTING_ORG_BOUNCED_EMAIL, + org_unit => $self->pickup_lib->id } )->[0] ) { + + my $bemail = JSON->JSON2perl($set->value); + $sender = $bemail if $bemail; + } $str =~ s/\${EMAIL_SENDER}/$sender/; $str =~ s/\${EMAIL_RECIPIENT}/$email/; -- 2.11.0