Skip to content

Commit b65c7be

Browse files
committed
Set custom recipient
1 parent 506e336 commit b65c7be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lhc_web/modules/lhchat/sendmail.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
$mailTemplate->translate($chat->chat_locale);
1414

1515
erLhcoreClassChatMail::prepareSendMail($mailTemplate, $chat);
16-
$mailTemplate->recipient = $chat->email;
16+
17+
if ($mailTemplate->only_recipient != 1 || $mailTemplate->recipient == '') {
18+
$mailTemplate->recipient = $chat->email;
19+
}
1720

1821
if (isset($_POST['SendMail'])) {
1922

0 commit comments

Comments
 (0)