Test mail hook