mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-29 16:27:11 +00:00
[Update] 修改邮件测试的接受者为发送者
This commit is contained in:
parent
50443de888
commit
c17d95dae0
@ -39,7 +39,7 @@ class MailTestingAPI(APIView):
|
|||||||
subject = "Test"
|
subject = "Test"
|
||||||
message = "Test smtp setting"
|
message = "Test smtp setting"
|
||||||
email_from = email_from or email_host_user
|
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:
|
except Exception as e:
|
||||||
return Response({"error": str(e)}, status=401)
|
return Response({"error": str(e)}, status=401)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user