when the system is running online, an error or exception occurs, so it is not convenient to check the date.
so you want to send all the error or exception information to the specified mailbox when an error or exception occurs, so that you can know the wrong information in time.
what I want to ask now is, in which file method does this mailbox method be placed?