troubleshooting Question

dynamic data in a blob of text

Avatar of eriklee
eriklee asked on
Web Languages and StandardsWeb ServersColdFusion Language
2 Comments1 Solution193 ViewsLast Modified:
i am trying to create a CFMX program to allow a user to craft a standard letter to a list of `users` - where certain dynamic data will have to come from a database - such as addressee/email-recipient. see below. i will store this whole blob in a text-file.  I will provide a template for the admin to change the content of the text file.

---------------------------------
%date-of-letter%

Dear %addressee%,
The following books are outstanding from your account. Please return them ASAP.

%list-of-books%

Regards,
%sender%
---------------------------------

what is the most efficient way of subsituting the dynamic info into the %var%?
Should i use REREPLACE? If there are 50 such variables - i would need to REREPLACE 50 times. Is this the only way.
ASKER CERTIFIED SOLUTION
Scott Bennett
Manager Technology

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros