django-rest-auth icon indicating copy to clipboard operation
django-rest-auth copied to clipboard

Catch SMTPDataError?

Open markperri opened this issue 5 years ago • 0 comments

Is there a way to catch SMTPDataError on sending validation emails when my mailserver is down? Right now rest-auth/registration returns 500 status code to my frontend with no explanation. The user is registered just fine, but their validation email isn't sent. I'd like to catch that error in Django and send a non-error status code so that they know they've registered and then I'll queue their validation for later.

markperri avatar Dec 05 '20 16:12 markperri