Test The Application - MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Use Manual

Table of Contents

Advertisement

<!--- Send the e-mail. --->
<cfmail from="#mailfrom#"
to="#mailto#"
subject="#mailsubject#">
<cfoutput>#mailmessage#</cfoutput>
</cfmail>
<!--- Create the structure to send back to Flex. --->
<cfset success = StructNew()>
<cfset success.body = "E-mail was sent at " & Now()>
<cfset success.destination = "ColdFusionGateway">
<!--- Send the structure to Flex. --->
<cfset ret = SendGatewayMessage("Flex2CF2", success)>
</cffunction>
</cfcomponent>
Save the file handleemail.cfc in the C:\CFusionMX7\wwwroot\flexgatewayexamples
2.
folder.

Test the application

To test the sample application, you must set up the testing environment, run the Flex
application, and then view your e-mail client to ensure that the application sent the e-mail
message successfully.
Set up the testing environment
Before testing the sample application, do the following:
Ensure that Flex Data Services 2 is running.
Ensure that ColdFusion is running.
To make debugging easier, you may want to start ColdFusion in a console by going to
the CFusionMX7\bin directory and entering
Start the Flex2CF2 Flex Event Gateway instance.
To start the Flex2CF2 Flex Event Gateway instance:
Start the ColdFusion MX Administrator.
1.
Select Event Gateways >Gateway Instances.
2.
Click the Start button next to the Flex2CF2 gateway instance.
3.
.
cfstart

Test the application

33

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 and is the answer not in the manual?

This manual is also suitable for:

Coldfusion mx

Table of Contents