Commit c17d95da authored by BaiJiangJie's avatar BaiJiangJie

[Update] 修改邮件测试的接受者为发送者

parent 50443de8
...@@ -39,7 +39,7 @@ class MailTestingAPI(APIView): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment