I'll third (?) Sean and Darrens reactions.. I have a little email app that users can create Their own dynamic emails based on the 'object' In question.. I have a list of pre-defined variables That the user can insert into their email template, These variables look like this: %todaysDate%, %thingName%
Just before the email is sent, run my string replacement Function that looks somehting like this: <cfscript> sEmailContent = replaceNoCase(sEmailContent,"%todaysDate%",nicelyFormattedDate,"all"); sEmailContent = replaceNoCase(sEmailContent,"%thingName%",getThing.myThing,"all"); Etc..... </cfscript> Maybe you could try something like this.. Regards, Adam > > > -----Original Message----- > From: Sean Corfield [SMTP:[EMAIL PROTECTED] > Sent: Thursday, 1 July 2004 16:12 > To: CFAussie Mailing List > Subject: [cfaussie] Re: Parsing DB content containing CF Vars > > On Thu, 1 Jul 2004 15:30:30 +1000, Jason Bayly <[EMAIL PROTECTED]> > wrote: > > Working on a basic custom CMS system for a client and was wondering > > if anyone has a bright idea on how to convert any cfvars in the > > content to their values. > > My first reaction is "don't do that!" but somehow folks never accept > that > :) > > My second reaction is use regex to process the string from the DB. > Search for patterns like this: > > #([^#]*)# > > and then for each match, replace it with evaluate(x) where x is the > matched pattern. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
