# get borrower information ....
my ( $borr ) = GetMemberDetails( $borrowernumber );
+my ( $patronemail ) = GetFirstValidEmailAddress($borrowernumber);
my $lib = GetBranchDetail($borr->{'branchcode'});
# handle the new information....
exit;
}
+if ( !$patronemail || $patronemail eq '' ) {
+ $patronemail = $updateemailaddress;
+};
+
if ( $query->param('modify') ) {
# get all the fields:
$message .= "\n\nThanks,\nKoha\n\n";
my %mail = (
To => $updateemailaddress,
- From => $updateemailaddress,
+ From => $patronemail,
Subject => "User Request for update of Record.",
Message => $message,
'Content-Type' => 'text/plain; charset="utf8"',