Sending templated email with CFMAIL
i am needing to send multiple types of emails in my scripts. however, all of these emails will use the same format, just have different content.
what i was wanting to do was create like a "template.cfm" file that would contain the template, and when loaded, i could populate variables in that markup and use it as the content for a CFMAIL.
i thought about using CFFILE to load the file into a variable, but then i don't know how to swap out the variables. i also thought about using a CFINCLUDE inside the CFMAIL tag, but i don't know if that is possible.
any recommendations on how to do this?
thanks,
jz
