Moving mail service to appService class.