mirror of https://github.com/jumpserver/jumpserver
[Fix] 系统设置/邮件设置/测试链接失败 (#4081)
parent
dbcf785e42
commit
55ae8bb5e6
|
@ -55,7 +55,7 @@ class MailTestingAPI(APIView):
|
||||||
email_recipient = email_recipient or email_from
|
email_recipient = email_recipient or email_from
|
||||||
connection = get_connection(
|
connection = get_connection(
|
||||||
host=email_host, port=email_port,
|
host=email_host, port=email_port,
|
||||||
uesrname=email_host_user, password=email_host_password,
|
username=email_host_user, password=email_host_password,
|
||||||
use_tls=email_use_tls, use_ssl=email_use_ssl,
|
use_tls=email_use_tls, use_ssl=email_use_ssl,
|
||||||
)
|
)
|
||||||
send_mail(
|
send_mail(
|
||||||
|
|
Loading…
Reference in New Issue