Sending a email through FlashMX

Does anyone have a decent tutorial on creating a simple email form in FlashMX.

My hosting uses a cgiscript for email can I use this with FlashMX. I’d rather not use the ‘mailto’ command as I hate it.

Can anyone help me out?

Cheddar

P.S. My first ever flash site is nearing completition i’m very excited :slight_smile:

I’ve never used cgi before. do a search on forms, you get plenty of results. jubba has a great one using php

Thanks for the help (again!).

I did do a quick search for ‘email’ but I didnt find anything. I will have a look at forms.

I don’t know much about CGI either. All I have to do if I want to send a email using HTML Forms is post the form to the CGI program and it does the rest.

well what happens is html sends variables to the CGI page. Agian, I don’t know any cgi, but the same should apply for Flash. As long as the variables match all you need to do is send the FLash vars to the CGI page.

[AS]
submit.onRelease = function(){
getURL(“email.cgi”,“0”,“post”);
}
[/AS]

something like that would work

this will get u started making a form
http://www.webthang.co.uk/tuts/tuts_fmx/gfmx3/gfmx3_1.asp

After reading this, I to became curious.

Here is a link I found that uses a PERL script.
Unfortunately it is referring to Flash 5, so I don’t know if there are any conflicts ::
http://www.actionscript-toolbox.com/sampleemail.php

I don’t know PERL I use ASP to send emails using CDONTS.
Here is a site that talks about using ASP with Flash ::
http://www.asp101.com/articles/flash/index.asp

Thanks to everyone who replied. Got it working now.

what tutorial did you use…can you share?

great!

*Originally posted by Alucard_X *
**what tutorial did you use…can you share? **

http://www.sephiroth.it/tutorials/flashPHP/email/page001.php

I ended up using PHP rather than CGI

HTH.

:nerd: Just so everyone knows, PHP is CGI. CGI stands for Common Gateway Interface, and there are many languages that fall under this category. ie Perl, Python, PHP, etc.

:geek: