perf: 邮件同步发送

pull/10998/head
Bai 2023-07-17 17:08:06 +08:00 committed by Bryan
parent a18c97aec0
commit be17fe6c31
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class Email(BackendBase):
from_email = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
accounts, __, __ = self.get_accounts(users)
subject = (settings.EMAIL_SUBJECT_PREFIX or '') + subject
send_mail_async.delay(subject, message, from_email, accounts, html_message=message)
send_mail_async(subject, message, from_email, accounts, html_message=message)
backend = Email