mirror of https://github.com/jumpserver/jumpserver
commit
edf72d3e4f
|
@ -24,7 +24,7 @@ def send_mail_async(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
if len(args) == 3:
|
if len(args) == 3:
|
||||||
args = list(args)
|
args = list(args)
|
||||||
args[0] = settings.EMAIL_SUBJECT_PREFIX + args[0]
|
args[0] = (settings.EMAIL_SUBJECT_PREFIX or '') + args[0]
|
||||||
email_from = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
|
email_from = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
|
||||||
args.insert(2, email_from)
|
args.insert(2, email_from)
|
||||||
args = tuple(args)
|
args = tuple(args)
|
||||||
|
|
Loading…
Reference in New Issue