introduced the applicationEvent and the bridge between message resolving and passing them to the Mail service