
Nuova versione del sendMail più allegato, testato su server windows e linux, anche su aruba. Il php (allegato) può essere utilizzato con le dovute modifiche per la vecchia versione in AS2.
Da modificare nel fla le seguenti variabili:
var URLrequest:URLRequest = new URLRequest("http://domain/send.php");
variables.toEmail = "mail@mail.it";
variables.subject = "Contact form";
e aumentare / diminuire il valore massimo dell’upload:
if (file.size > 200*1024) {
altre eventuali modifiche sono abbastanza intuitive, anche se, come al solito, il sorgente non è commentato, di sicuro una prossima implementazione sarà una barra di caricamento per l’upload del file, se avete altri consigli…
Flash & attachment AS3 (813.6 KiB, 1,646 hits)
If you find our work useful and want to encourage the development of more free resources, you can do it by donating through PayPal, the people.




I have downloaded the contact form and change to my domain in the .fla file and changed the sent to address to my mail address and uploaded the send.php file to my ftp
i tried to run the application but it didn’t work.
Please can you help me with it?
Thanks!
Garo
hi Garo,
need more info about the server, the php has been tested on win and linux server php4, anyway, have you tried to send the email without no attachment?
hi,
I have set up the application accordingly and have been successful in sending the email. Although the email did indicated “In allegato il file: Test.txt”, there’s no email attachment in it. I added some debug code and found the file is uploaded successfully. Can you please help me on this.. Thanks a million
hi jensen
as i said in previous post the sample has been tested with success on windows (aruba) and linux (mediatemple), the problem is (well should be…) in the php, the code regarding mime, also you should be sure the temp folder on your server is accessible.
could you please tell me more about server info? so i’ll be able to do more tests.
i’m really sorry about these issues but i’m not a… wizard :)
Hi futre,
No worries about the issue, i suspected its the folder security issues too but I have no inkling which folder to allow access.. could you give me guidance here? I am using a shared hosting plan on windows which allows php.. I’m kinda new to web development so perhaps you can let me know which information is required?
Thanks
Thank you so much for all this fun and workable script! You guys Rock!
@jensen
send me a private email (futre[at]peopleforfun[dot]com) with a link to the a php page
@easten
:) thanks a lot, i really appreciate
@futre
do you have any idea how can i modify the script in order to send pictures from the flash itself instead from the computer? E.g. Ecards? Please advice.
hi Easten
i think it would be easyer write a new application, i’m sure you can find many samples on the web
thanks for the reply futre =)
i’ve been trying out some scripts already.
Hi, I have installed your fantastic form and It works, but:
When you submit the form, the message “was sent” does not appear, it is all the time the message “Please wait…”
Can you help me?
(Please)
I want that, when you send the form and all is ok, the message “your form has been sent” appears in the “tfRes” box.
Best regards,
Barry Collins
ciao Barry,
sorry but i’m on holiday… :)
and do not have my pc,
if you are checking offline or on local server you may get such error, have you tried online? and did you get the email with the attachment?
regards
Hello, thanks for the script, but I am having the same problem as Barry.
“When you submit the form, the message “was sent” does not appear, it is all the time the message “Please wait…””
Everything works fine, but it never transitions to the “sent” screen.
Please help if you can!!
Thanks,
Shawn
ciao Shawn,
did you try online or local?
the email arrive?
regards
Thanks for the try but it didn’t work for me. It just stagnated at the Please Wait stage.
I really needed this, with some modifications.
I would have liked it to allow only mp3 files. (that I could have done, but it’s not working for me)
im totally new to flash. my question is which folder on your server are the images stored. do you have to create the folder yourself?
For whatever reasons, I cannot get this to work with attachments. I see an attachment on e-mails, but it appears the attachment is always corrupted. It has the right file-name and extension. If I could get that one piece working, this would be awesome for my needs.
It works perfect!!! Thanks a lot for such a fine application…
it doesn’t work maybe if you pay it will work
Just can’t figure out how to change the text in the .FLA file (text such as “File 200Kb max, Message, Name, etc”
hi Tumba,
they are components, check their properties or simply delete and add what you want
cheers, futre
Hi Futre
Thanx for the quick response. I am sorry but be it that I am kind of new to Flash I don’t understand how to do that :-(
Could you help me with that? I simply need for example “Browse” to be called “Gennemse” etc.
By the way – great work with this file, it’s very easy to work with.
hi tumba,
it’s really simple, click twice on the movieclip, then select the button (browse file) or labels (name, email…) and on the menu open Window -> Property -> Parameters.
You should have these panels at the bottom of flash, Property|Filters|Parameters,
when you check parameters and have the object (in our case the button or the label) selected you have more info about it, such as: autosize, condensewhite… and text, just change the text as you like.
I’m glad it’s working, few people say it don’t, :(
let me know if you need further help,
ciao, futre
GOT IT!!! Great!
Everything else was piece of cake and as I said it works great.
Thank you for help and thank you for sharing this file with us.
Great,
thanks to you for your visit.
;)
I have the same problem. It is showing “please wait”.
I have read all the comments but i did not found the answer.
Locally i didnot work asswel.
Could you please help me.
Thx Andesigner
Hello,
I really don’t know what to say, I’ve tried it under linux and windows (php5), local and online and it works, I’ll make few more tests next days but this is an old project, maybe could be better start another one.
Hello Futre,
But i have a Mac, but that should not be the problem. Fash is flash and PHP is PHP.
I’m looking and searching for a week now, the only things i found where the PHP’s. But no forms with it. Bought two, nothing works. Any suggestions?
Thx anyway Futre.