Variable within a variable

2008-12-27 Thread Maya MacDonald
How can you display a variable within a variable? I have a client who needs to control the content of all email notices that go out to their clients. Email notices have some dynamic content such as grabbing customer name or account details. The value of the email notice content is stored

Re: Variable within a variable

2008-12-27 Thread Seb Duggan
to be included; the variables within them get processed as normal. Seb Seb Duggan Web ColdFusion Developer e: s...@sebduggan.com t: 07786 333184 w: http://sebduggan.com On 27 Dec 2008, at 13:14, Maya MacDonald wrote: How can you display a variable within a variable? I have a client

Re: Variable within a variable

2008-12-27 Thread Maya MacDonald
Seb, Thank you for the reply. I am not quite sure I am following how I would include this as a flat file? Thanks, Devin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free

Re: Variable within a variable

2008-12-27 Thread David Low
Maya, When you're setting up your initial variable, can't you do something like cfset variables.emailMessage = Dear variables.customerName chr(10) chr(13) Message here / - then you're combining the variables before you use them... David 2008/12/27 Maya MacDonald devinpar...@hotmail.com:

Re: Variable within a variable

2008-12-27 Thread Dominic Watson
Does evaluate do the trick? cfmail...#Evaluate(emailContent)#/cfmail Dominic ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Variable within a variable

2008-12-27 Thread Dominic Watson
On another note - I have done something similar for a client where they could setup various email templates. What I did was to give them a set of keys they could use in their email body that would be replaced with the relevent data. The options I gave them were like: [title], [firstname],

Re: Variable within a variable

2008-12-27 Thread Maya MacDonald
Thanks Dominic I'll give that a try! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive:

Re: Variable within a variable

2008-12-27 Thread Seb Duggan
Either: 1. Have a separate file with just the content of the email, including the variables you want replaced, and include it in your cfmail like this: cfmail ... cfinclude template=myemailtemplate.cfm / /cfmail or: 2. If your template text is in a database, you could generate a temp

RE: Variable within a variable

2008-12-27 Thread Jason Durham
-Original Message- From: Seb Duggan [mailto:s...@sebduggan.com] Sent: Saturday, December 27, 2008 10:59 AM To: cf-talk Subject: Re: Variable within a variable Either: 1. Have a separate file with just the content of the email, including the variables you want replaced, and include it in your