Simple API endpoint that sends an email when someone submits a POST request with JSON content