Instead of selecting a fixed mail template in your email setup you can also choose to setup an Xpath expression to dynamically select the email template to use for a specific input file.
You do that in the email setup by clicking this icon to the right of the mail server:
Then the mail template can be selected via an Xpath expression e.g. via a variable: