better email error logging and some pretty printing for admin interface
This commit is contained in:
parent
67375bd281
commit
4152034e4a
9 changed files with 45 additions and 26 deletions
|
@ -47,8 +47,7 @@ def reply(request, pk):
|
|||
body=request.data['message'],
|
||||
in_reply_to=first_mail.reference,
|
||||
)
|
||||
log = logging.getLogger('mail.log')
|
||||
async_to_sync(send_smtp)(make_reply(mail, references), log)
|
||||
async_to_sync(send_smtp)(make_reply(mail, references))
|
||||
|
||||
return Response({'status': 'ok'}, status=status.HTTP_201_CREATED)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue