Is there any way of creating a template with variables for use with SendMail
I am looking to simplify the preparation of a template for use with SendMail. My idea would be: I create a text file as the template. In the text file I include a number of variables. Then, I load the file with a script. And send it to the contact via SendMail. The variables would be resolved at run time. Can anyone please advise:
- if this is possible at all ! If not, any other suggestions ?
- What would be the syntax to embed the variables in the template text file ?