How to receive email notification when an error or bad request happens? Is it possible to receive email notifications when there is an error or Bad Request issue in Craft CMS?
We had an issue where our contact forms were not working due to craft.app.config.general.[csrfTokenName] changing to craft.app.config.general.csrfTokenName. No warnings in the deprecated code section. Instead, potential customers would see a Bad Request message, but we had no idea for days.
I would like to be alerted if such an error occurs so I can fix the issue much quicker.
Similarly, if there is an error on the site anywhere, I would like to be alerted.
Is it possible?
Thanks
I'd recommend using a service like Sentry or Bugsnag that are tailored exactly for this situation and include some Craft integrations as well:
https://plugins.craftcms.com/search?q=sentry
https://plugins.craftcms.com/search?q=bugsnag