created interface for mailer interceptor