I'd pretty much say 98% that you'll need to head your project over to flashbuilder to get this done, I have been trying to think of a way to trick FC but I think you'll need FB
ooooo[ps doubled up there kids sorry
so, do you know how to do it in flash builder...
Emailing a form requires some special setup on your web server. The actual sending of the email is done on the server-side. The SWF you create in Catalyst sends a request to your server, which then sends the email. Unfortunately, you have to be prepared to learn some server-side coding to get this to work.
Here are some resources to help you get started:
- Using the Flex Form control to sending email using PHP on the server: http://cookbooks.adobe.com/post_Submitting_a_Flex_form_using_PHP-8523.html . Note that you're not using the Form control, but this demonstrates how to write the PHP code.
- A good discussion of this topic. http://www.actionscript.org/forums/showthread.php3?t=181049
- One cheesy way of doing this without a server is to create a mailto link with the email body pulled from the form. When the user clicks the link, his email client will open up with the email pre-written, but he will still have to send it. I don't really recommend this method as many users don't have mailto configured on their machines. If you do want to do it, you just need to construct a mailto link dynamically from the form contents. Add a "Go to URL" interaction in Catalyst, import the project to builder, and then change the URL to something like this:
"mailto:formSubmission@myCompany.com?subject=Form Submission&body=" + firstNameTextInput.text + ", " + lastNameTextInput.text".