cfm
hi to any how read this
i having problems with cold fusion and flash mx
im trying to send a email with the cfmail tag
but the movie in flash end succesful but when i look the email i dont receive anything.
i put the movie and the cf script in the www root of the server
here come the code
this is the action of the button
on (release) {
if (username.text == "" || email.text == "" || comments.text == "") {
getURL("javascript:alert('name, email and comments are needed');");
gotoAndStop(1);
} else {
//trace("fields = ok");
cfData = new LoadVars();
cfData.onLoad = function(){
//trace("cfData LOADED.");
_root.gotoAndStop("results");
}
for(myText in _root){
//trace("myText = " + myText);
//trace(_root[myText] instanceof TextField);
if(_root[myText] instanceof TextField){
//trace("myText = " + myText);
cfData[myText] = _root[myText].text;
//trace("cfData["+myText + "] = " + cfData[myText]);
}
}
//sendfeedback.cfm
cfData.sendAndLoad("sendfeedback.cfm", cfData, "POST");
_root.gotoAndStop("wait");
}
}
this is the cf script
<cfmail from="#form.email#" to="efel__@hotmail.com" subject="feedback from your site." server="mail">
name : #form.username#
email : #form.email#
comments : #form.comments#
</cfmail>
can you tell me how this suppose to work [/b]
|