As I understand the principle behind the separation of display from logic, it's to
facilitate reuse and maintanablity. I'd say you just do whatever makes sense to you
with that principle in mind. HTML in emails is certainly a grey area, it's not
"display" that's rendered in a browser, it's code that's still in the midst of being
processed by the server.

I'm using a display.cfc to good effect, and it has lots of HTML in it - true, it will
need to be modified with each project, but I know exactly where it is and I really
like the flexibility that it allows the user of the CMS, because they can choose what
type of content, in what style they would like, wherever they please on a page.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Andrew Scott
Sent: Thursday, January 08, 2004 4:57 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] CFC question and HTML in cfc


Ok, need a little advise on this.

In regards to components and functions etc., I am looking at creating a
function to be generic to emails. Now should I create code in the cfc to
format the email or do an include for this.

For example the manager would load the DAO, DAO would be used to get the
information put what about creating an email to send what would be the
options you guys/gals would use. Remembering that HTML formatted emails are
required as well as plain text emails. Some containing images etc.


Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to