Yeah, sure, templates are an easy way to accomplish this for most any output when you have a database backend.
%%date%%
Dear %%firstname%%
Because you bought our %%priorpurchase%% before I wanted to tell you about our related product, the %%suggestion%%.
Pretty common stuff... is there a...