test email hook