Mail service using Angular JS