By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,686 Members | 1,558 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,686 IT Pros & Developers. It's quick & easy.

Flash Contact Email Form using PHP

Catalyst159
100+
P: 111
I am trying to create a contact form in Flash CS3 for my website. The form will be used to send an email to a specifies email addresse. I am a little confused as to how I can go about doing this from Flash with PHP. In flash i use Actionscript 3. I have tried a bunch of tutorials but they all fail to send email. Any help would be great. Thanks
Aug 31 '09 #1
Share this Question
Share on Google+
8 Replies


didoamylee
P: 16
Hy,
As far as I know Flash cannot sent email. It can however send a $_POST to a specific URL.
The solution would be to create a file mail.php ( or whatever name ) and do a form in flash cs3 to send the $_POST to this file.
mail.php will be responsible for the mail sending.
First just create a form and see if you get any $_POST data.
Another trick might be to have the flash file and the PHP mail script in the same file. This will make retriving the $_POST easier.
Aug 31 '09 #2

Catalyst159
100+
P: 111
Hey,

Thanks for the reply. I think I know what I have to do with the flash and php. But I need to know if I need anything installed on the web server so that this can be possible ?

Regards,

Catalyst
Aug 31 '09 #3

Markus
Expert 5K+
P: 6,050
Kirupa.com is a good resource for flash tutorials and info.
Aug 31 '09 #4

Markus
Expert 5K+
P: 6,050
If you intend to do it with PHP, you'll obviously need PHP and sendmail installed on the server.

Also, please do not post the same question in different threads. Create your own thread.

Mark (moderator).
Aug 31 '09 #5

didoamylee
P: 16
On the server you must have php and a mail server like postfix or sendmail.
For flash you do not need anything special as flash will load in the users browser and use his flashplayer and browser resources.
Aug 31 '09 #6

Catalyst159
100+
P: 111
Sorry about posting in different threads Markus. My bad. Is there a way I can accomplish the samething using asp instead of php?

Regards,

Catalyst
Aug 31 '09 #7

hsriat
Expert 100+
P: 1,654
@Catalyst159
Flash is client side program, so you need server for the purpose of sending mail. Doesn't matter whether its PHP, ASP or Java.
PHP is the easiest solution. Almost all web hosts support PHP.

Use can use PHPMailer or SwiftMail (google for them) and see how to use them. There might be tutorials for flash+PHP mails on the web.
Sep 1 '09 #8

Catalyst159
100+
P: 111
Thanks for the info and help.
Sep 2 '09 #9

Post your reply

Sign in to post your reply or Sign up for a free account.