modified the service to call the new email service api