mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-05 07:34:05 +00:00
[Update] 邮件设置添加配置项:发送账号 (#2796)
This commit is contained in:
@@ -24,7 +24,8 @@ def send_mail_async(*args, **kwargs):
|
||||
if len(args) == 3:
|
||||
args = list(args)
|
||||
args[0] = settings.EMAIL_SUBJECT_PREFIX + args[0]
|
||||
args.insert(2, settings.EMAIL_HOST_USER)
|
||||
email_from = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
|
||||
args.insert(2, email_from)
|
||||
args = tuple(args)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user