A simple API that sends an email based on valid JSON