@@ -, +, @@ address that failed overdue notices are set to. --- .../bug_24197-new_RedirectAddressForFailedOverdueNotices_syspref.sql | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref | 5 +++++ misc/cronjobs/overdue_notices.pl | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 installer/data/mysql/atomicupdate/bug_24197-new_RedirectAddressForFailedOverdueNotices_syspref.sql --- a/installer/data/mysql/atomicupdate/bug_24197-new_RedirectAddressForFailedOverdueNotices_syspref.sql +++ a/installer/data/mysql/atomicupdate/bug_24197-new_RedirectAddressForFailedOverdueNotices_syspref.sql @@ -0,0 +1, @@ +INSERT INGORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('RedirectAddressForFailedOverdueNotices', '', NULL, 'Destination email for failed overdue notices. If left empty then the branch email or KohaAdminEmailAddress syspref will be the email address that failed overdue notices are sent to', 'free'); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref @@ -21,6 +21,11 @@ Administration: class: email - "(Leave this field empty to send messages to their normal recipient)" - + - "Email address failed overdue notices are sent to: " + - pref: RedirectAddressForFailedOverdueNotices + class: email + - "If left empty then the branch email or KohaAdminEmailAddress will be set as the destination address for failed overdue notices" + - - "How much debugging information to show in the browser when an internal error occurs: " - pref: DebugLevel default: 0 --- a/misc/cronjobs/overdue_notices.pl +++ a/misc/cronjobs/overdue_notices.pl @@ -821,7 +821,7 @@ END_SQL borrowernumber => undef, message_transport_type => 'email', attachments => [$attachment], - to_address => $admin_email_address, + to_address => C4::Context->preference('RedirectAddressForFailedOverdueNotices'), } ) unless $test_mode; } --