add interface for new email provider apis, docs on mg api