Add emailAction.
Refactoring.