update mail service implementation