I wouldn't have thought it would be the CF side of things, but how you are
calling it from Flash, so probably need to look at that side of things also.

On the CFC side, the return type will not always be numerical if the cfcatch
returns a value from cfcatch.detail. It would probably throw up a cf error
in that case.

How are you setting up the remoting and calling the cfc method from Flash??

Hilary

--

"Jason Bayly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> Hi Hilary
>
> I have gotten another CFC to work previously which contained 6 or so
> methods. Im still alittle green with all this... :-s
>
> my cfc code below... I ended up doing it with HTML etc, had a lunchtime
> deadline.. tho im still keen to work out whats up with it...
>
> Thanks again..
> Jason
>
> <cfcomponent hint="A general CFC to enable emailing from flash."
> displayname="sendemail">
>     <cffunction name="sendtheemail" access="remote" hint="Sends an email
> from flash" returntype="numeric" displayname="sendtheemail">
>          <cfargument name="guestname" required="yes" default=""
> type="string">
>          <cfargument name="partnername" required="yes" default="NA"
> type="string">
>          <cfargument name="transport" required="yes" default="No"
> type="string">
>          <cfargument name="attendance" required="yes" default=""
> type="string">
>          <cfargument name="diet" required="yes" default="NA"
type="string">
>
>
>  <cftry>
>   <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]"
> subject="Boral Platinum Club Celebrations Event RSVP 2003 Notification">
>   Attending: #arguments.attendance#
>   Guest Name: #arguments.guestname#
>   Partner Name: #arguments.partnername#
>   Transport Required: #arguments.transport#
>   Special Dietary Requirements: #arguments.diet#
>
>   Posted: #LSDateFormat(Now(), "dd/mm/yy")# ~ #LSTimeFormat(Now(),
> "hh:mmtt")#
>   </cfmail>
>
>   <cfset Vcomplete = 1>
>   <cfreturn Vcomplete>
>   <cfcatch type="any">
>        <cfset Vcomplete = #cfcatch.Detail#>
>        <cfreturn Vcomplete>
>   </cfcatch>
>  </cftry>
>  </cffunction>
>
> </cfcomponent>
>




---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to