
Test the application 251
2. Save the file handleemail.cfc in the C:\CFusionMX7\wwwroot\flexgatewayexamples
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.
■ Start the Flex2CF2 Flex Event Gateway instance.
To start the Flex2CF2 Flex Event Gateway instance:
1. Start the ColdFusion MX Administrator.
2. Select Event Gateways >Gateway Instances.
3. Click the Start button next to the Flex2CF2 gateway instance.
Run the application
To run the Flex application, you browse to the MXML file.
1. Open the http://localhost:8700/samples/dataservice/maypp/flexemail2cf.mxml file in a
browser.
2. Enter a valid e-mail address in the To text box. Ensure that the e-mail address is one whose
incoming e-mail you can check.
3. Enter the name of the sender in the From text box.
4. Enter the subject in the Subject text box.
5. Enter the message in the Message text area.
6. Click Send.
TIP
To make debugging easier, you may want to start ColdFusion in a console by going to
the CFusionMX7\bin directory and entering
cfstart.
Commentaires sur ces manuels