what is the easiest way to have people enter their email address and it sends their email to a designated email adress
Depends what you have avaiable, the dead simplest would be a getURL using a mailto link, but this will open the local email editor.
PHP would be the next simplest, but you have to have a PHP server.
Can also be done in ASP and ColdFusion if you have those avaiable.
would you add the actions to the send box or inside the text field?
you would add the actions to whatever you want to trigger the send, so most likely a button.
I’m confussed by your question. Are you looking for a button so that they can click on it and send you an e-mail. Or are you looking for a button & textfield so that they can type in their e-mail and press send to send you their e-mail address?
If you want them to send you an e-mail message, the simplest button looks like this. Place this actionscript on the button.
on (release){
getURL(“mailto:joeBlow@mamahoohoo.com”);
}
If you want them to send you their e-mail address, it is a bit more complicated and will require PHP.
i am going for just them imputing their email in a text box and then hitting the send button and it sends the email address into the email. their is no other way of achieving this without php?
nope
Well yes, but you have to rely on thier local email client. Use the getURL with
on (release){
getURL("mailto:joeBlow@mamahoohoo.com?body="+flashVaribleFromTextBox);
}
check my syntax, but that is the basic idea. THis will open the local email client with a mail message that has the person’s email as the subject.
You can “borrow” a PHP server. that is the best way. If they just had to local client pop up so I could mail them, I wouldn’t do it… Thats something to remember