GetDotted Domains

Viewing Thread:
"PHP Form to Mail using Flash "

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 12/11/08 at 15:37
Regular
Posts: 2
Hi.

I wondered if there was a way to get Flash to send form data directly to Freeola's form_to_mail.php (which works perfect when I call it from an HTML form) rather than using a third party script which is causing me difficulties.

I have a Flash movie which collects text inputed as variables and sends it to a PHP script using this:

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("mail.php", "POST");
}

I used to use a PHP script which used to work fine, but not any longer. Well, it has worked on a couple of occasions, but it is intermittent. It uses the code:

mail('[email protected]', $subject, $message, $headers, '-f [email protected]');

On this advice from Freeola's support pages:

"If you are currently using a third party or custom Form-to-Mail script, you need to add a parameter containing '-f [email protected]' with the same address as in your 'From:' header (this must be a valid Freeola-hosted address). An example is provided below:

mail('[email protected]', 'subject', 'body', 'From: [email protected]', '-f [email protected]');"

---

So as you can see I have added this important "-f".

Can anyone offer a solution. I wondered if there was a way to get Flash to send the information directly to Freeola's form_to_mail.php

http://freeola.com/support/form_to_mail/form_to_mail.php

Many thanks
Wed 11/11/09 at 09:08
Regular
Posts: 1
Hi,

I know this post is quite old, but i didn't know if it has been resolved?

I have eventually got my flash form to nearly work with freeola's form_to_mail.php and it works quite quickly.

Now the nearly bit is as follows:
I am using the following flash actionscript:

on(release){

sendVars = new LoadVars();
sendVars.recipient ="[email protected]";
sendVars.from = "[email protected]";
sendVars.name = name;
sendVars.message = message;
sendVars.phone = phone;
sendVars.email = email;
sendVars.send ("http://www.my.addy/cgi-bin/form_to_mail.php", "POST");
}


I receive the email almost instantly.. however, the email comes through as follows:

email: undefined
phone: undefined
message: undefined
name: undefined


Could someone please help me to get the values written into my form come through with the email. I have tried all sorts of things from all over google, and nothing has worked.

My instance names and variables are as follows:
Instance name Variable
t1 name
t2 phone
t3 email
t4 message

Any help would be appreciated. And I hope this will eventually benefit lots of other freeola flash users!
Wed 12/11/08 at 15:37
Regular
Posts: 2
Hi.

I wondered if there was a way to get Flash to send form data directly to Freeola's form_to_mail.php (which works perfect when I call it from an HTML form) rather than using a third party script which is causing me difficulties.

I have a Flash movie which collects text inputed as variables and sends it to a PHP script using this:

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("mail.php", "POST");
}

I used to use a PHP script which used to work fine, but not any longer. Well, it has worked on a couple of occasions, but it is intermittent. It uses the code:

mail('[email protected]', $subject, $message, $headers, '-f [email protected]');

On this advice from Freeola's support pages:

"If you are currently using a third party or custom Form-to-Mail script, you need to add a parameter containing '-f [email protected]' with the same address as in your 'From:' header (this must be a valid Freeola-hosted address). An example is provided below:

mail('[email protected]', 'subject', 'body', 'From: [email protected]', '-f [email protected]');"

---

So as you can see I have added this important "-f".

Can anyone offer a solution. I wondered if there was a way to get Flash to send the information directly to Freeola's form_to_mail.php

http://freeola.com/support/form_to_mail/form_to_mail.php

Many thanks

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

I am delighted.
Brilliant! As usual the careful and intuitive production that Freeola puts into everything it sets out to do. I am delighted.
Brilliant service.
Love it, love it, love it!
Christopher

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.