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.
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
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!
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