added first working version of mail service