move mail event class

fixes #3899