Lines 1464-1474
sub _send_message_by_email {
Link Here
|
1464 |
$email->create($params); |
1464 |
$email->create($params); |
1465 |
} else { |
1465 |
} else { |
1466 |
$email = Koha::Email->create($params); |
1466 |
$email = Koha::Email->create($params); |
|
|
1467 |
$email->header('X-Koha-Message-ID', $message->{id} ) if C4::Context->preference('SendLetterIdInEmailNotices'); |
1467 |
if ($is_html) { |
1468 |
if ($is_html) { |
1468 |
$content .= "<span id='letter_id' style='display:none'>$message->{letter_id}</span>" if $message->{id} && C4::Context->preference('SendLetterIdInEmailNotices'); |
|
|
1469 |
$email->html_body( _wrap_html( $content, $subject ) ); |
1469 |
$email->html_body( _wrap_html( $content, $subject ) ); |
1470 |
} else { |
1470 |
} else { |
1471 |
$content .= "\n$message->{letter_id}" if $message->{id} && C4::Context->preference('SendLetterIdInEmailNotices'); |
|
|
1472 |
$email->text_body($content); |
1471 |
$email->text_body($content); |
1473 |
} |
1472 |
} |
1474 |
} |
1473 |
} |
1475 |
- |
|
|