parsed the params, sent an email from a post request with json content