Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-10-2003, 11:47 PM   #1
Registered User
Join Date: Jun 2003
Posts: 13
Default CFMAIL with Flash MX


I have the following ColdFusion component:

<cfcomponent name = "confidentialMail">
<cffunction access="remote" name="sendMail" returntype="string" displayname="Confidential Email" hint="Confidential email">
<!---"message" will be a function in the flash movie --->
<cfargument name="subject" type="string" required="true" displayname="Subject" hint="eMail Subject">
<cfargument name="message" type="string" required="true" displayname="Message" hint="Message">
<cfargument name="txtResponse" type="string" required="no" displayname="Response" hint="Response eMail Address">
<cfargument name="rdoResponse" type="string" required="no" displayname="rdoResponse" hint="Radio Button - Response Requested">
<!---Send mail, based on flash input--->
<!--- This is a email group maintained by DPW/MIS --->
TO="[email protected]"
<cfif #arguments.rdoResponse# EQ "YES">
<cfelse> "Confidential Intranet Email<[email protected]>;"

SUBJECT= "#subject#"
#message# #rdoResponse# #txtResponse#
<!--- set the priority of the email --->
<cfmailparam name="X-Priority" value="1">
<!--- change the reply address
<cfmailparam="Reply-To" value="address"> --->
<cfreturn "Your email has been sent! Thanks for the input">

It is integrating with Flash MX. All appears to be fine EXCEPT for the "FROM". When working with the "FROM", if I don't use the conditional - and instead just use:

It works. However when I put in the conditional, the component won't validate.

On the Flash side, I have a move with a pair of radio. If one radio is selected, the FROM is a static email address. However if the other radio is selected, the user puts in their own email address.

Hopefully this makes sense.


JeffHobbs is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 07:10 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.