mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-09 19:29:48 +00:00
fix: 邮件主题前缀设置不生效的问题
This commit is contained in:
@@ -49,6 +49,7 @@ def send_mail_attachment_async(subject, message, recipient_list, attachment_list
|
||||
if attachment_list is None:
|
||||
attachment_list = []
|
||||
from_email = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
|
||||
subject = (settings.EMAIL_SUBJECT_PREFIX or '') + subject
|
||||
email = EmailMultiAlternatives(
|
||||
subject=subject,
|
||||
body=message,
|
||||
|
@@ -11,6 +11,7 @@ class Email(BackendBase):
|
||||
def send_msg(self, users, message, subject):
|
||||
from_email = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
|
||||
accounts, __, __ = self.get_accounts(users)
|
||||
subject = (settings.EMAIL_SUBJECT_PREFIX or '') + subject
|
||||
send_mail(subject, message, from_email, accounts, html_message=message)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user