From 62e6f851b92489b4ceddbbe1e38d17a18924ea98 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Wed, 29 Jun 2022 10:39:21 +0700 Subject: [PATCH] Fixed Email plugin. --- src/Notification/EmailNotify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Notification/EmailNotify.php b/src/Notification/EmailNotify.php index ea8a9ad..da5b079 100644 --- a/src/Notification/EmailNotify.php +++ b/src/Notification/EmailNotify.php @@ -132,11 +132,11 @@ protected function initPluginSettings(): void * @param string $subject EmailNotify subject * @param string $body EmailNotify body */ - private function sendEmail(string $toAddress, array $ccList, string $subject, string $body): int + private function sendEmail(string $toAddress, array $ccList, string $subject, string $body): bool { $email = new Email(); - $email->setEmailTo($toAddress); + $email->addEmailTo($toAddress); $email->setSubject($subject); $email->setBody($body); $email->setIsHtml(true);