Sending a customer a custom email upon accepting Terms and Conditions

Hi, I need to send a customer an email confirmation that the customer has accepted the terms and conditions of the website. Is there a way to do it through the Shopify API, or should I create an API on my own backend to accomplish that?