Title: Message
Seth MacPherson wrote:

Thank you, Nando.

 

Sounds like a good solution.  I’ll check it out.  You going to CFUnited?

 

- Seth

Nope. Not planning on it, unless somebody manages to talk me into it. A little too far to travel from Switzerland. :)

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nando
Sent: Thursday, June 08, 2006 8:51 PM
To: CFCDev@cfczone.org
Subject: Re: [CFCDev] Avoiding Evaluate While Using CFMAIL

 

Oh, ok. I get what you're doing.

I remember this problem from a different context, and the solution in that context was to write it to disk as a .cfm file and then cfinclude it. So in your case you could try using cffile to write
#HTMLBody# as a temporary file to disk, then cfinclude that file inside your cfmail tag. Then you don't need evaluate. Does that make sense?

Of course, you'd need to manage typos somehow before writing the file to disk. i assume your users would misspell a variable name at least as often as i do. :)


Peter Bell wrote:

Right, but what if you have a customizable template which admins (without programming skills, but with the ability to type simple variable names) want to be able to edit?

 

Imagine a form with a WYSIWYG editor and telling site admins to "just type #LastName#" where you want their last name to go and providing a list of variables and validation to make sure you only put in correct variable names. We use %LastName% as our string, but that was the use case we had so end users could put whatever variables wherever in a nicely formatted HTML email they could design themselves and then send to n-recipients.

 

Best solution we came up with was the ReplaceNoCase, but to be fair, we don't have anyone using the personalized email feature, so we haven't thought about it very much :->


Best WIshes,
Peter

 

 

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org


--


Aria Media Sagl
CP 234
6934 Bioggio
Switzerland
www.aria-media.com


Reply via email to