There is also the added bonus of adding a factory to the service as well.
The only reason you would do this though would be in our case we switch
between IMS and cfmail depending on what we need.



On 4/23/07, Jaime Metcher <[EMAIL PROTECTED]> wrote:

We like to put all our website copy (i.e. text as in copywriting) and
layout
into files in a particular directory and then train our web publishers and
marketing types to only change things in there.  That includes emails that
go to users.  So inside the send() method there'd be something like:

<cfmail ...>
<cfinclude template="#arguments.messageTemplate#">
</cfmail>

where arguments.messageTemplate will be something like
"EmailSentForReissuingPassword.htm".  Then when the wordsmiths decide
there's been a change in policy or branding or corporate punctuation
standards, they just trawl through all those templates (religiously
avoiding
anything inside ##).

Jaime Metcher

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sammy
> Larbi
> Sent: Monday, 23 April 2007 6:26 AM
> To: cfcdev@cfczone.org
> Subject: Re: [CFCDEV] An example of a NotificationService
>
>
> Sean Corfield wrote, On 4/22/2007 1:12 PM:
> > On 4/21/07, Marc <[EMAIL PROTECTED]> wrote:
> >> The example shows just variables.notificationService.send(.), but I'm
> >> having
> >> trouble figuring out how the exact call and the actual implementation
> >> would
> >> look.  What goes inside send()?  If the message content itself goes
in
> >> there, doesn't that get messy?  Should all the attributes of a CFMAIL
> >> tag be
> >> accounted for, and if so, how?
> >
> > There is of course no "one true answer" here but there are lots of
> > reasonable degrees...
> >
> > A simple send() method might take from=, to=, subject=, body= and,
> > yes, pass in a string containing the message both. I'm using this
> > approach right now for a site I'm working on. Yes, constructing the
> > body in the calling code and passing it in is a little messy. See
> > below.
> >
> >
>
> At least there's cfsavecontent to make it less messy.  Can you imagine
> trying to do something like that in Java? =)
>
>
>
>
>
> You are subscribed to cfcdev. To unsubscribe, please follow the
> instructions at http://www.cfczone.org/listserv.cfm
>
> CFCDev is supported by:
> Katapult Media, Inc.
> We are cool code geeks looking for fun projects to rock!
> www.katapultmedia.com
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/cfcdev@cfczone.org
>
>




You are subscribed to cfcdev. To unsubscribe, please follow the
instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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




--



Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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

Reply via email to