Catch SMTPDataError?
markperri opened this issue · 0 comments
markperri commented
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.