Disable receiving mail and use REST API to capture the data