Lines 101-107
if ( $email_add ) {
Link Here
|
101 |
content => Encode::encode("UTF-8", $iso2709), |
101 |
content => Encode::encode("UTF-8", $iso2709), |
102 |
}; |
102 |
}; |
103 |
|
103 |
|
104 |
C4::Letters::EnqueueLetter({ |
104 |
my $message_id = C4::Letters::EnqueueLetter({ |
105 |
letter => $letter, |
105 |
letter => $letter, |
106 |
message_transport_type => 'email', |
106 |
message_transport_type => 'email', |
107 |
to_address => $email_add, |
107 |
to_address => $email_add, |
Lines 109-114
if ( $email_add ) {
Link Here
|
109 |
attachments => [$attachment], |
109 |
attachments => [$attachment], |
110 |
}); |
110 |
}); |
111 |
|
111 |
|
|
|
112 |
C4::Letters::SendQueuedMessages({ message_id => $message_id }); |
113 |
|
112 |
$template->param( SENT => 1 ); |
114 |
$template->param( SENT => 1 ); |
113 |
} |
115 |
} |
114 |
$template->param( email_add => $email_add ); |
116 |
$template->param( email_add => $email_add ); |