Implement custom logging email backend for development: log outgoing emails to Loguru and stdout

This commit is contained in:
Ross
2025-12-15 13:14:12 +00:00
parent 03b23b9178
commit c071f38920
4 changed files with 17 additions and 3 deletions
+2
View File
@@ -5044,6 +5044,8 @@ def candidate_email_details(request, cid, resend=False):
resend_flag = False
email_sent, comment = user.email_details(resend=resend_flag)
logger.debug(f"Email details sent to CID {cid}: sent={email_sent}, comment={comment}")
return JsonResponse({"sent": email_sent, "comment": str(comment)})