Adding hook to alter email