#!/usr/bin/perl
# fix this line
-use C4::Reports;
+use C4::Reports::Guided;
+use C4::Context;
use Mail::Sendmail;
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,