added interface for mail service