You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, I'm not sure what precise semantics we want here. I think if the failure indicates that the server is unable to send outgoing emails at all, we do want a 500 error. (One thing to consider is that the signup/password reset flows are often where self-hosted administrators might be when they are first trying to get email working).
So we perhaps want the behavior to depend on what type of exception we get when trying to send the email?
The password reset form calls
send_email
synchronously:zulip/zerver/forms.py
Lines 347 to 376 in e7c62c4
This means that if that emails fails to send, it raises an EmailNotDeliveredException:
zulip/zerver/lib/send_email.py
Lines 262 to 282 in e7c62c4
We should catch those in the password reset form, and display a message that says something like:
The text was updated successfully, but these errors were encountered: