Creating a system which can take in a json and send emails from it.