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

Reply via email to