Lines 97-109
if ( $op eq 'addreport' ) {
Link Here
|
97 |
my $transport = 'email'; |
97 |
my $transport = 'email'; |
98 |
my $reply_address = $patron->email || $patron->emailpro || $patron->B_email; |
98 |
my $reply_address = $patron->email || $patron->emailpro || $patron->B_email; |
99 |
|
99 |
|
100 |
if ( $recipient eq 'library' and defined($library->get_effective_email) and $library->get_effective_email ne C4::Context->preference('KohaAdminEmailAddress') ) { |
100 |
if ( $recipient eq 'library' and defined($library->inbound_email_address) and $library->inbound_email_address ne C4::Context->preference('KohaAdminEmailAddress') ) { |
101 |
# the problem report is intended for a librarian and will be received at a library email address |
101 |
# the problem report is intended for a librarian and will be received at a library email address |
102 |
C4::Letters::EnqueueLetter({ |
102 |
C4::Letters::EnqueueLetter({ |
103 |
letter => $letter, |
103 |
letter => $letter, |
104 |
borrowernumber => $borrowernumber, |
104 |
borrowernumber => $borrowernumber, |
105 |
message_transport_type => $transport, |
105 |
message_transport_type => $transport, |
106 |
to_address => $library->get_effective_email, |
106 |
to_address => $library->inbound_email_address, |
107 |
reply_address => $reply_address, |
107 |
reply_address => $reply_address, |
108 |
}); |
108 |
}); |
109 |
} else { |
109 |
} else { |
110 |
- |
|
|