perf: 邮件同步发送

pull/10998/head
Bai 1 year ago committed by Bryan
parent a18c97aec0
commit be17fe6c31

@ -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

Loading…
Cancel
Save