interceptor to send email