mail api frontend, mail service & mail controller