-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Displaying status_code of the email status would be good for better error handling #57
Comments
Red Mail should not do any silencing on the error: whatever the Do you mean you would like to have better errors than what Furthermore, your example produces quite an intuitive exception though (you are missing a quote):
|
It's not just about 'status_code', it can be done by passing status_code with appropriate message. |
I tried to find this feature but I didn't find it. so I am trying to get
status_code
of the email's status like "If the email was successfully sent or failed" and "If failed then How email failed", I mean what reason effected the email failure. If the console is showing error like -or
so, A developer will want to show or pass the appropriate message to the user in frontend on "What went wrong" or "What causes the email failure" ? but in this case It will only be seen as "something went wrong" (No status code or a clean message) to pass forward.
For Example -
and If I try to
print the EmailSender class calling variable
print(email)
. Then it printsClass object Binary
.so It would be better to show more information about email just sent.
The text was updated successfully, but these errors were encountered: