mirror of https://github.com/jumpserver/jumpserver
[Update] 修改邮件测试的接受者为发送者
parent
50443de888
commit
c17d95dae0
|
@ -39,7 +39,7 @@ class MailTestingAPI(APIView):
|
|||
subject = "Test"
|
||||
message = "Test smtp setting"
|
||||
email_from = email_from or email_host_user
|
||||
send_mail(subject, message, email_from, [email_host_user])
|
||||
send_mail(subject, message, email_from, [email_from])
|
||||
except Exception as e:
|
||||
return Response({"error": str(e)}, status=401)
|
||||
|
||||
|
|
Loading…
Reference in New Issue