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
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
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
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:
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
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],
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:
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
-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
9 matches
Mail list logo