View | Details | Raw Unified | Return to bug 28581
Collapse All | Expand All

(-)a/C4/Letters.pm (-3 / +5 lines)
Lines 1365-1376 sub _send_message_by_email { Link Here
1365
1365
1366
    if ($patron) {
1366
    if ($patron) {
1367
        $library           = $patron->library;
1367
        $library           = $patron->library;
1368
        $branch_email      = $library->branchemail;
1368
        $branch_email      = $library->from_email_address;
1369
        $branch_replyto    = $library->branchreplyto;
1369
        $branch_replyto    = $library->branchreplyto;
1370
        $branch_returnpath = $library->branchreturnpath;
1370
        $branch_returnpath = $library->branchreturnpath;
1371
    }
1371
    }
1372
1372
1373
    my $from_address = $message->{'from_address'} || $library->from_email_address;
1373
    my $from_address =
1374
         $message->{'from_address'}
1375
      || $branch_email
1376
      || C4::Context->preference('KohaAdminEmailAddress');
1374
    if( !$from_address ) {
1377
    if( !$from_address ) {
1375
        _set_message_status({
1378
        _set_message_status({
1376
            message_id => $message->{'message_id'},
1379
            message_id => $message->{'message_id'},
1377
- 

Return to bug 28581