Flash :: AS3 To PHP - Mail() Function
Jan 30, 2012
When I click on send the textbox displays 'sending....' with no change. I'm very sure that this was working before, but the client has noticed it not working recently. I have a swf with this AS3
[Code]...
View 1 Replies
Similar Posts:
Jan 23, 2004
I made this small shop that uses Flash to collect data from the user (and what they want to buy) and PHP to mail the data in a confirmation e-mail. it's not working
View 1 Replies
Jul 26, 2004
I'm trying to send email from Flash. The email form is in a movie loaded with loadMovie. When I call the email.php page, it seems to take forever to do its thing and then nothing happens.
I based my script on the flash email form here in the Kirupa Tutorials and I've tried every way of giving the path to my variables - that is, the path to the text fields in the form via _root and _parent. I've tried appending variables the the loadVariables url and just tried posting them. I can't even get any results when I use the print function in the php script. Here is my php script:
PHP Code:
<?php
$name = $HTTP_POST_VARS['name_txt'];
$email = $HTTP_POST_VARS['email1_txt'];
$interest = $HTTP_POST_VARS['interest'];
[Code].....
It seems like my variables aren't reaching the form, but I'm also concerned hat is is taking forever for any data to be returned to the flash movie (I've got an on(data) event on the form).
View 1 Replies
Jul 26, 2004
I'm trying to send email from Flash. The email form is in a movie loaded with loadMovie. When I call the email.php page, it seems to take forever to do its thing and then nothing happens.
I based my script on the flash email form here in the Kirupa Tutorials and I've tried every way of giving the path to my variables - that is, the path to the text fields in the form via _root and _parent. I've tried appending variables the the loadVariables url and just tried posting them. I can't even get any results when I use the print function in the php script. Here is my php script:
PHP Code:
<?php
$name = $HTTP_POST_VARS['name_txt'];
$email = $HTTP_POST_VARS['email1_txt'];
[Code]....
It seems like my variables aren't reaching the form, but I'm also concerned hat is is taking forever for any data to be returned to the flash movie (I've got an on(data) event on the form).
View 1 Replies
Jun 11, 2010
Is it possible to add a attachment to a mail with the mailto function in actionscript 3? Thats the thing, i want to open the default mail program compose window with some data but i also need to add a file as attachment, and that file must be a screen capture of the app.
[Code].....
Looks like the attachment=path/to/file dont work anymore in new email clients, i think it worked until outlook 97 then it was removed for security reasons and so now is imposible to do this anymore.
View 2 Replies
Jan 26, 2009
I Have been using Kirupa for a while now, an excellent resource!! but have only just joined the forum. I have had a look at various Flash tutorials provided on the site but cant seem to find quite what I am after. I have a contact form on a site I am making and I want to be able to browse and add an attachment. I see Kirupa provides a tutorial on contact forms and one on uploading files to a server with flash but unless I am mistaken not a contact form with an attach facility? I would like the attachment to be send directly to the e-mail address along with the other information. I am using CS3 but have published the swf with AS2.0 The site is [URL] if you need to see what I'm talking about to make it clearer - once there click on contact
View 3 Replies
May 18, 2011
I want to set up mail in my Flash site. The only thing I can figure out is to have someone fill out a form and click button for it to open in their email browser with forms filled out.
I purchased my site name from GoDaddy and am using a free server to host. GoDaddy provided me with one email address. I would like to send the data to this email account with the click of the button instead of opening someones email browser. An even bigger "dream" would be the ability to attach a file to the email from my form.[code]...
View 2 Replies
May 18, 2009
I am just wondering if its at all possible to send e-mails in Flash without using PHP/ASP to achieve this as the application im using does not like loading external files.I have managed to do this but Flash requires the PC in question to have an e-mail client installed on the machine (used the getURL) is there anyways I can cut this out and get Flash to send the e-mail?
View 1 Replies
Feb 5, 2009
All of the variables are set in the flash website, I actually used the one from kirupa's site. It works great and everything comes through in my email.I want to add more than just one $message to the email body. Say I want more of their information to come through.... right now I have (name, email, and message) obviously..
I would like to add "library" and "address" to the body of the email, the variables are allready created in the website. Also can I have something in front of each 'answer', I have seen it in code but I can't seem to get it working for myself. For example my email would come in and in the body would be;
Library: (then what they filled in for their library)
Address: (what they filled in.."
Message: (their message)
This is one way I thought it would work but did not....(without the 'title' infront of each..
$message = $_POST["message"];
$message .= $_POST["library"];
$message .= $_POST["address"];
I also tried, but did not work..(with titles)
$message = "Library: " . $_POST["library"] . "Address: ". $_POST["address"] . "Message: ". $_POST["message"];
Currently, this is my email.php script...
<?php
$sendTo = "my@email.com";
$subject = "ClientsWebsite.com - Libraries Email";
[code]....
View 2 Replies
Mar 25, 2011
I am building a flash website and I want contact information sent to my gmail address.
The Lynda.com tutorial I am using says I need to "enter the php address." What is that and how do I do it?
This is my code edited
if (thename.text == "" || theemail.text == "" || thephone.text == "" || themessage.text =="") {
thefeedback.text = "*Please fill out all fields";
[Code].....
View 3 Replies
Jan 7, 2009
I'm having an issue with Flash CS4 and Actionscript 2.
I've got a contact form on my contact page, with a few text boxes set to input text.
Example:
Text box of type Input Text and name = contactName. Do I need to set the Variable field too?
Here's the Actionscript for the button I have on the form:
Code:
on(release)
{
if(contactName == "" || contactName.length == 0)
[Code]...
Basically, the e-mail that gets sent has 'UNDEFINED' in it instead of the value I enter in the contactName field.
View 9 Replies
Dec 1, 2004
I'm trying to send out flash variables using a GET method however, it's not working as it should.my button code looks like this:
Code:
on(release){
getURL("http://www.myurl.com/new.php?subject=" + _root.subject + "&name=" + _root.name + "&phone=" + _root.phone + "&email=" + _root.email);
}
When I declare values on my actions layer, it comes out like this
http://www.myurl.com/new.php?subject="Hello"&name="Koopakilla"&phone="0 181155654"&email="mail@mail.com"
And my PhP code works just fine. However, when I try to do the same using an input text box it comes out like this:
Code:
&namee=<p align=left><font face=_sans size=13 color=#000000 letterSpacing=0.000000 kerning=1>b</font></p>
View 3 Replies
Oct 30, 2009
I am working on a mail form in flash where in I have to select a file from a local machine and submit the form via php to respective mail id with the attachment.Can anyone please help me find a tutorial or is there any on the internet.
View 1 Replies
Nov 25, 2010
I have a very simple mail contact form in Flash AS2 ( only three fields Name, Email and Comment ) in which I want to include onc captcha for some restriction. How can I add captacha in my flash form? I am very new in all these areas of php, mysql and flash so a small demo file will be much more useful.
View 2 Replies
Feb 25, 2011
Send button action:
onClipEvent (load)
{
this.t.v = _root.contacts_txt9;
}
[code]...
View 1 Replies
Dec 19, 2010
i made a flash card (an animated postcard), and i want to send it via email so other people can immediatly see it when they open the email. How can i do this?
View 3 Replies
Feb 29, 2004
everything was going well with my form until I transfer the files (php + swf) to a Windows server...the thing is that now it doesn't work.
View 14 Replies
May 10, 2003
How can I create a mail form in Flash ? I know, it's been asked a million times before but this one's different. You see the server I'm on has UNIX servers, and don't support anything. Real crap, not even PHP, AS, CGI, ... nothing. So now what do I do to create a mail form without PHP, AS, Perl, CGI, ... ? I have no idea at all, all those forms use PHP.
View 14 Replies
Jan 26, 2009
after loads of attempts trying to get my mail contact form to work ( very new to action script + php ) I finally got there! The only problem is i receive all this under the message..
[Code]...
The message is in there, but you can see this is a bit of a problem. Does anyone know how I can resolve the issue?
View 3 Replies
Apr 18, 2009
I've been getting an 'undefined' response and no email sent upon sending. It USED to work but then I added a few fields and broke it somehow. I copied everything perfectly, and know my text field var's are named correctly, so the fault lies somewhere here.
'submit' button actionscript:
[code]....
View 2 Replies
May 5, 2009
i am trying to create a simple mail form in flash to be sent through php.
the actionscipt:
Code:
on (release) {
getURL("http://www.dw20.co.uk/pages/contact_form.php", """", "POST");
}
the php:
[Code]....
View 2 Replies
Feb 29, 2004
everything was going well with my form until I transfer the files (php + swf) to a Windows server...the thing is that now it doesn't work..
View 14 Replies
Dec 21, 2010
have created a contact form that sends 3 lots of data (name, email and message) to my email address. here is my code for my flash form which looks right
import flash.net.URLVariables;
import flash.net.URLRequest;
InteractiveObject(theName.getChildAt(1)).tabIndex = 1;
[Code].....
View 1 Replies
Jan 10, 2007
It seems that when I test my PHP mail in flash it works perfectly fine, but when I export it and try it in a browser it doesn't. Whats the deal, is it server-side?
View 7 Replies
Oct 9, 2009
I'm having a little difficulty with parsing some information from a variable in flash.When a user has completed a form I can get a mailto command to open a mail application and post the answers into an email.I am struggling with posting same information to be handled via a php mail script.Here is the action script code
Code:
maildata.onRelease = function() {
signpost = wmq8.getValue();
[code].....
View 1 Replies
Mar 23, 2002
How to make a button that sends mail. sumthin like getURL(mailto.... or sumthin?
View 6 Replies
Aug 10, 2009
I have problem with creating e-mail link in my Flash CS4 program. The problem is that when i create button i cant attach any actions to him. It was not a problem for me in flash 4 i was working before. The movie is in Action script 3.0.
View 3 Replies
Jul 12, 2010
i need to add to my flash page print and e-mail the schreenshot buttons. like the buttons in this page "
View 1 Replies
Feb 9, 2012
again (".)I've making this contact form on flash & i got the script for the action script but i'm unable to integrate a php script that would send the mail from my form.I'm using two input feilds with instance names as theEmail and theMessage Here is the action action script code i'm using -
[Code]....
View 2 Replies
Nov 2, 2010
I'm working on my companys website and I am trying to make a link from flash open the default mail program so they can send us an email. All of that works fine and dandy.... on PCs. While using a mac I was not able to get the email to go through, it will just send back an undeliverable email. Does anyone know of a solution for this or am I going to have to completely change the way that I'm doing it?
Heres my HTML Code:
infoEmail.addEventListener(MouseEvent.CLICK, getInfo);
function getInfo(e:MouseEvent){
navigateToURL(new URLRequest("mailto: email@emailaddress.com"), "_self");
}
I know that the PC email actually goes through, it forwards it to me.
View 1 Replies