Make deliver email method more dynamic with variables
passed into the template