Call the shopify mail server to send the form through the API

Guys, I wrote a form to collect data. The form contains uploaded files. I now want to call an API to use shopify’s mail server. I don’t know how to invoke.