-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Improve error handling when sending emails #258
Comments
I don't think we can all of a sudden throw the exceptions again. |
That's true! Because of that I opened this issue so that it gets attention in v2 |
NC will require a complete rewrite which will be impossible without fundings. |
Some ideas up for discussion:
this feature would be nice for contao 5 :-) |
Only three days left for new features ;) |
In version 2.0, all of this should be possible 😊 I'm thus closing it for myself so that I can keep track of all the issues. Feel free to revisit, once there's a public beta. |
Unfortunately, errors when sending emails are not handled correctly, so the sender will see the success page, although an error occured.
The hook
pocessFormData
will only stop with exceptions:https://github.com/contao/contao/blob/2f1827b8a2cac27d2b86d7ba6337470217d6c60d/core-bundle/src/Resources/contao/forms/Form.php#L563
But the NC catches all exceptions when trying to send emails:
contao-notification_center/library/NotificationCenter/Gateway/Email.php
Line 164 in 068f868
Can we find a better solution for this bad error handling and user/customer experience?
The text was updated successfully, but these errors were encountered: