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

Conclusion
Jesse Stratford
Jesse was born and raised in Australia, and now lives in London. He is one of the original founders of http://ActionScript.org, and was formerly a Flash developer, teacher, author and speaker. While Jesse no longer works as a full-time Flash professional, he still enjoys actively participating in the http://ActionScript.org community as time permits.
The 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
17 Responses to "Send Email via Flash and PHP" 
|
said this on 07 Mar 2007 1:04:52 PM CST
I tried but not working o
|
|
said this on 11 May 2007 3:31:36 PM CST
Yeh I can't get it to
|
|
said this on 01 Jun 2007 3:27:23 PM CST
For what I know, free geo
Also I want t Thanks |
|
said this on 12 Jun 2007 11:24:49 AM CST
Hi
Why it send me an emp why? |
|
said this on 30 Jun 2007 6:15:38 AM CST
Of course I stumble acros
And I am Jesse, |
|
said this on 01 Jul 2007 6:41:02 PM CST
I found this tutorial ext
My webs If anyone could help |
|
said this on 06 Jul 2007 12:58:09 PM CST
it seems to work for me s
|
|
said this on 23 Jul 2007 7:40:02 AM CST
I cant get it to send me
|
|
said this on 14 Aug 2007 3:26:13 PM CST
I'm using flash 8 and
|
|
said this on 24 Aug 2007 5:35:22 PM CST
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 CST
Wow, this is fantastic...
|
|
said this on 21 Oct 2007 3:24:58 AM CST
Thank you for taking your
It didn't wo http://www.kirupa.com/ |
|
said this on 18 Feb 2008 8:57:53 PM CST
Great Tutorial thanks - w
|
|
said this on 28 Dec 2009 2:39:30 PM CST
I had the same problem as
|
|
said this on 16 Jan 2010 7:28:37 PM CST
This is sending me blank
|
|
said this on 22 Feb 2010 7:00:08 PM CST
Looking at the PHP it's u
|
|
said this on 05 Apr 2010 6:38:58 AM CST
For those who are using A
|




Author/Admin)