Tivix / django-rest-auth

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
www.tivix.com
MIT License
2.41k stars 661 forks source link

Catch SMTPDataError? #635

Open markperri opened 3 years ago

markperri commented 3 years ago

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.