I have a test application that sends a mimekit message to a web api that then sends the email with Gmail API. When the app and the API are both running on localhost this works f