From 8f78039d4af60f7bcf3a063b4e87904b480b58aa Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Mon, 7 Oct 2013 10:25:16 +0530 Subject: [PATCH] Bug 10994 - Email sending is not working in claim notice. This patch will not check whether staff patron's email address or not for sending claim notices. --- C4/Letters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index be2913f..f48ab29 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -371,7 +371,7 @@ sub SendAlerts { # ... then send mail my %mail = ( To => join( ',', @email), - From => $userenv->{emailaddress}, + From => C4::Context->preference('KohaAdminEmailAddress'), Subject => Encode::encode( "utf8", "" . $letter->{title} ), Message => Encode::encode( "utf8", "" . $letter->{content} ), 'Content-Type' => 'text/plain; charset="utf8"', -- 1.7.9.5