Groups | Blog | Home
all groups > flash data integration > april 2007 >

flash data integration : send email form to ColdFusion


Bloke
4/7/2007 10:11:18 PM
I am trying to send data filled out in a form in my flash movie to send mail
using CFMAIL.
In my form that is in Flash I have variables set.
Then when the button is pressed
loadVariables("sendMail.cfm", "POST");

Then on my CF page I have this:
<cfmail from="info@mysite.com" to="#FORM.email#" SERVER="mail.mysite.com" >

#FORM.comments# #FORM.company# #FORM.name#
</cfmail>

I can't find a tutorial on this. Everything is PHP. And I don't want to use
"Flash Forms in MX7"

This is all embedded in my Flash web site.
MotionMaker
4/8/2007 6:55:38 PM
The issue is more a ColdFusion issue and best asked in that forum.

For the Flash side loadVariables sends all the variables back on the timeline
the command is issued.

If you want a more controlled method of sending variables look at code
examples for
http://livedocs.macromedia.com/flash/8/main/00002335.html
or
http://livedocs.macromedia.com/flash/8/main/00002336.html

Bottom line for client server in Flash is your server side can be tested
without Flash so you could create an HTML form that simply sends the variables
and then have the cfm return them in an echo fashion. If that is working, then
Flash should plug in with either loadVariables or LoadVars assuming you have
the variable names matched.
Bloke
4/9/2007 11:53:37 PM
I ended up using this tutorial and a CF page. I was doing the form wrong. It
needed to be in its own movie clip. Then set up the variable on the CF page to
send the email.
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
AddThis Social Bookmark Button