|
Lines 1346-1357
sub _send_message_by_email {
Link Here
|
| 1346 |
|
1346 |
|
| 1347 |
if ($patron) { |
1347 |
if ($patron) { |
| 1348 |
$library = $patron->library; |
1348 |
$library = $patron->library; |
| 1349 |
$branch_email = $library->branchemail; |
1349 |
$branch_email = $library->from_email_address; |
| 1350 |
$branch_replyto = $library->branchreplyto; |
1350 |
$branch_replyto = $library->branchreplyto; |
| 1351 |
$branch_returnpath = $library->branchreturnpath; |
1351 |
$branch_returnpath = $library->branchreturnpath; |
| 1352 |
} |
1352 |
} |
| 1353 |
|
1353 |
|
| 1354 |
my $from_address = $message->{'from_address'} || $library->from_email_address; |
1354 |
my $from_address = |
|
|
1355 |
$message->{'from_address'} |
| 1356 |
|| $branch_email |
| 1357 |
|| C4::Context->preference('KohaAdminEmailAddress'); |
| 1355 |
if( !$from_address ) { |
1358 |
if( !$from_address ) { |
| 1356 |
_set_message_status({ |
1359 |
_set_message_status({ |
| 1357 |
message_id => $message->{'message_id'}, |
1360 |
message_id => $message->{'message_id'}, |
| 1358 |
- |
|
|