Skip to content

Commit 9f87253

Browse files
committed
Fixes
1 parent 3ae0dd8 commit 9f87253

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/Email/CustomEmailMessage.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ public static function fromNotification(
7777
->from($from)
7878
->to($recipient->getEmail())
7979
->subject($notification->getSubject())
80-
->htmlTemplate($content)
81-
->text($content)
80+
->html($content)
8281
;
8382

8483
if ($exception = $notification->getException()) {

readme.MD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,6 @@ return [
200200
$arFields = ['NAME' => 'testing email', 'EMAIL' => 'recipitient@gmail.com'];
201201

202202
$bitrixEventHandler->send('CODE_MAIL_EVENT', $arFields);
203-
```
203+
```
204+
205+
Ограничение: механизм отправляет все письма, как html, игнорируя настройки битриксового почтового шаблона.

0 commit comments

Comments
 (0)