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

pull/2815/head
BaiJiangJie 2019-06-20 11:38:37 +08:00
parent 50443de888
commit c17d95dae0
1 changed files with 1 additions and 1 deletions

View File

@ -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)