From b5120e72c81388eaa00de45ce85aa239eea153bd Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 17 Jun 2021 12:19:05 +0800 Subject: [PATCH] =?UTF-8?q?perf(notification):=20=E5=8F=91=E9=80=81html=20?= =?UTF-8?q?msg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/notifications/backends/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/notifications/backends/email.py b/apps/notifications/backends/email.py index b1cdec755..4e1c27322 100644 --- a/apps/notifications/backends/email.py +++ b/apps/notifications/backends/email.py @@ -11,4 +11,4 @@ class Email(BackendBase): def send_msg(self, users, subject, message): from_email = settings.EMAIL_FROM or settings.EMAIL_HOST_USER accounts, __, __ = self.get_accounts(users) - send_mail(subject, message, from_email, accounts) + send_mail(subject, message, from_email, accounts, html_message=message)