added function to get email template variables based on component and communication_type