I am having problems to send an email from flash.I have another script that works just fine but I cant get this one to work and it pretty the same code.
I have this code in flash:
ActionScript Code:
on(release) {
if( yourname.text == "" or youremail.text == "" or friendname.text == "" or friendemail.text == "") {
status = "Enter some text in the text fileds.";
Selection.setFocus("yourname");
}else {
ind = new LoadVars();
ind.yourname = yourname.text;
ind.youremail = youremail.text;
ind.friendname = friendname.text;
ind.friendemail = friendemail.text;
ind.sendAndLoad("flashindique.cfm",ind,'POST');
gotoAndStop(27);
}
}
And here is my ColdFusion code:
ActionScript Code:
<html>
<head>
</head>
<body>
<cfmail from="#trim(youremail)#" to="#trim(friendemail)#" subject= "#yourname#,wants to invite you to visit this Web Site!"
server="myserver"
port="25" type="html">
<font size="2" face="Trebuchet MS">
Hi #friendname# !<br>
<br>
#yourname# has visited Tavares Web Site and He/She thought it is a very good web site.He/She decided to invite you to visit it.<br>
Tavares Web Site is about a story of a DJ named by his friends DJ Chambinho.<br>
You will get some information about him and how he started djing.It is a pretty web site with lots of good stuffs.<BR>
Pay a visit to our web site and we hope you enjoy it!<BR>
<br>
Thank you for your attention.<br>
<b>Eduardo Tavares (Dj Chambinho)</b><br>
<b><i><a href="http://www.eduardotavares.com.br">[url]www.EduardoTavares.com.br[/url]</a></i></b>
</font>
</cfmail>
</html></body>
I tested with a static cfm file and it worked just fine but with flash is hard.
thx
Thank You!
E d u a r d o T a v a r e s
-------------------------------------
Delphi Developer - Web Designer
MSN:ecptj@hotmail.com
www.EduardoTavares.com.br
"I would like to die like my grandfather,sleeping,relaxing but not screaming desperately like the 40 passengers of the bus he was driving"
It works just fine, and my PHP file just sends the email. Hope that helps in some way...