Email interceptor for testing