|
Lines 92-105
if ($is_ajax) {
Link Here
|
| 92 |
); |
92 |
); |
| 93 |
|
93 |
|
| 94 |
my $to_address = $branch->branchemail || $branch->branchreplyto || C4::Context->preference('ReplytoDefault') || C4::Context->preference('KohaAdminEmailAddress'); |
94 |
my $to_address = $branch->branchemail || $branch->branchreplyto || C4::Context->preference('ReplytoDefault') || C4::Context->preference('KohaAdminEmailAddress'); |
| 95 |
my $from_address = $patron->email || $patron->emailpro || $patron->B_email; |
95 |
my $reply_address = $patron->email || $patron->emailpro || $patron->B_email; |
| 96 |
|
96 |
|
| 97 |
C4::Letters::EnqueueLetter({ |
97 |
C4::Letters::EnqueueLetter({ |
| 98 |
letter => $letter, |
98 |
letter => $letter, |
| 99 |
message_transport_type => 'email', |
99 |
message_transport_type => 'email', |
| 100 |
borrowernumber => $patron->borrowernumber, |
100 |
borrowernumber => $patron->borrowernumber, |
| 101 |
to_address => $to_address, |
101 |
to_address => $to_address, |
| 102 |
from_address => $from_address, |
102 |
reply_address => $reply_address, |
| 103 |
}); |
103 |
}); |
| 104 |
} else { # note empty, i.e removed |
104 |
} else { # note empty, i.e removed |
| 105 |
$status = "removed"; |
105 |
$status = "removed"; |
| 106 |
- |
|
|