From 0d71db9aa8c0d843cf29ba1de159890892adc15d Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 5 Nov 2007 16:38:59 -0600 Subject: [PATCH] Fixing a hardcoded email address, changing to use the KohaAdminEmailAddress sys pref Signed-off-by: Joshua Ferraro --- tools/runreport.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/runreport.pl b/tools/runreport.pl index 412d806f99..d2d85a2393 100755 --- a/tools/runreport.pl +++ b/tools/runreport.pl @@ -2,6 +2,7 @@ # fix this line use C4::Reports; +use C4::Context; use Mail::Sendmail; @@ -21,7 +22,7 @@ if ($format eq 'url'){ if ($email){ my $to = $email; # should be koha admin email - my $from = 'crc@liblime.com'; + my $from = C4::Context->preference('KohaAdminEmailAddress'); my $subject = 'Automated job run'; my %mail = ( To => $to, -- 2.39.5