- Home
- Tutorials
- Flash
- Intermediate
- Send Email via Flash and PHP

Conclusion
Jesse Stratford
Jesse lives and works in Melbourne Australia. He is the Cofounder of http://ActionScript.org. A Flash enthusiast, teacher, author, freelancer and speaker Jesse's main focus nowadays is managing http://ActionScript.org, but he enjoys participating actively in community and the wider Flash scene when he has time.
View all articles by Jesse StratfordThe POST method is a form of communicate between files. Many of you would be familiar with the GET method which appends data tot he URL call of a file, (file.swf?variable=value). POST also communicates variables, however these variables are sent using hypertext protocol and not in the URL call. This is useful when the data you wish to submit is confidential (you don't want someone's password showing up in the URL!) or if your variables contain data that may cause errors. In this case, we cannot use GET because Flash reads the " " characters before sending off the call and subsequently tries to call a URL with multiple lines, (which obviously won't work).
That's it! Now you can upload both files to a web-server with PHP support and you should have no trouble getting it to work. These files do not require special permission to run and mail() is enabled on all half-decent PHP hosts. Remember that you can't run these files on your local disk unless you are running some sort of web-server with a PHP interpreter.
Thanks to Shai-Tan and massd on Efnet for their help with figuring out alternative ways to pass the damn new line markers!
| Jesse Stratford is the Co-Master of ActionScript.org and a freelance Flash developer and teacher. He is based in Australia and enjoys all things Flash. NB: If you have comments or feedback please feel free to email me, but please do not email me Flash questions; the forums are provided for that purpose and you will get a faster answer by posting you question there. |
If you have found this tutorial helpful, I hope that you will take 30 seconds to visit The Hunger Site where, with just one click you can make a free donation of food to a starving person in a third-world country. We do not benefit financially from this action; it is purely an act of charity. |
| This tutorial is protected by International Intellectual Property Rights laws and may not be reproduced or redistributed in full or part, without the prior written consent of the author. Unauthorized reproduction of this tutorial or its contents may result in prosecution. I've worked hard on this tutorial, please don't steal it. |
Spread The Word
13 Responses to "Send Email via Flash and PHP" 
|
said this on 07 Mar 2007 1:04:52 PM CDT
I tried but not working o
|
|
said this on 11 May 2007 3:31:36 PM CDT
Yeh I can't get it to
|
|
said this on 01 Jun 2007 3:27:23 PM CDT
For what I know, free geo
Also I want t Thanks |
|
said this on 12 Jun 2007 11:24:49 AM CDT
Hi
Why it send me an emp why? |
|
said this on 30 Jun 2007 6:15:38 AM CDT
Of course I stumble acros
And I am Jesse, |
|
said this on 01 Jul 2007 6:41:02 PM CDT
I found this tutorial ext
My webs If anyone could help |
|
said this on 06 Jul 2007 12:58:09 PM CDT
it seems to work for me s
|
|
said this on 23 Jul 2007 7:40:02 AM CDT
I cant get it to send me
|
|
said this on 14 Aug 2007 3:26:13 PM CDT
I'm using flash 8 and
|
|
said this on 24 Aug 2007 5:35:22 PM CDT
For those having trouble
message = "& subject = "& from = "&quo and then changed t if ( to: if (sub This solved the trou |
|
said this on 03 Oct 2007 1:07:53 AM CDT
Wow, this is fantastic...
|
|
said this on 21 Oct 2007 3:24:58 AM CDT
Thank you for taking your
It didn't wo http://www.kirupa.com/ |
|
said this on 18 Feb 2008 8:57:53 PM CDT
Great Tutorial thanks - w
|




Author/Admin)