Please remember to use the var scope. In the method below, both
queryemail and success need to be var-ed. (I'd also add output=false.)

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
Yahoo IM : cfjedimaster

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Michael Corbridge [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 05, 2002 8:18 AM
> To: CF-Talk
> Subject: RE: CFC newbie question
> 
> 
> hmmmm...
> 
> all the example code was removed from my previous email.
> I'll try again.
> 
> 
> cftalk1.cfm
> ---------------------------------------------------
> <cfinvoke component="cftalk1" method="sendMail" 
> emailid="Raymond" returnVariable="r_return">
> <cfdump var="#r_return#">
> 
> cftalk1.cfc
> ----------------------------------------------------
> <CFCOMPONENT hint="Database Driven Email Processing">
> �<CFFUNCTION name="sendMail" access="private" 
> returntype="boolean" hint="Process Emails">
> ��
> <CFARGUMENT name="emailID" type="string" required="true" 
> hint="ID of Email to send">���
> 
> 
> <CFQUERY NAME="queryemail" DATASOURCE="exampleapps">
>       SELECT
>               *
>       FROM
>               tblEmployees
>       WHERE
>               FirstName = '#emailID#'
> </CFQUERY>
> 
> <cfmail to = "[EMAIL PROTECTED]"
>   from = "[EMAIL PROTECTED]"
>   subject = "test"> 
> 
>               test from cfc
>               #queryemail.LastName#
> 
> </cfmail>
> 
> 
> ��<cfset success = True>
> ��<CFRETURN success>
> �</CFFUNCTION>
> </CFCOMPONENT>
> 

> 


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to