Generates template email from multiple types of inputs