A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: email button

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    18

    email button

    Help i need to learn how to send a email from a button i have created. I have created a text feild above it but what do i do know(laymans terms please) to get the details from the text feild to a email adress. I am using flash mx if that helps.

  2. #2
    Senior Member tu_dor's Avatar
    Join Date
    Jan 2004
    Posts
    209
    You have to give the text field a variable name.
    Let's say it's "EMAIL".
    The code on the button should look like this:

    Code:
    on (release) {
        getURL("mailto:" add EMAIL);
    }
    All you have to do is change the work EMAIL into your variable name.
    Last edited by tu_dor; 01-16-2004 at 11:23 AM.

  3. #3
    ReMember jennyj's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    549
    If you are trying to (for example) let users fill in a text box on screen, and then email the content of the textbox to yourself you will need some kind of server-side script to do this, flash cannot process emails by itsself. I use ASP, depends on what your server is set up to handle. However, if all you are trying to do is open the users default mail client (with your email address filled in)do what Tudor has suggested.

    JennyJ

  4. #4
    Registered User
    Join Date
    Jan 2004
    Posts
    18
    I would like to have it come up with a page saying 'message sent'. If that requires asp do you know of any good tutorials as flashkit does not have any. Thanks for your time!

  5. #5
    Senior Member tu_dor's Avatar
    Join Date
    Jan 2004
    Posts
    209
    The original code is this:
    Code:
    on (release) {
        getURL("mailto:" add EMAIL);
    }
    You have to add a gotoAndStop(YOURFRAME); or gotoAndPlay(YOURFRAME); command, which tells the movie what frame to go after the e-mail is sent.

  6. #6
    Formerly "MacMatix" MacPerson's Avatar
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    388
    Thanks for the help... but i'm not having any luck... Would it be possible for you to tell me what I actually need to type in (instead of what appears in the panel)

    Would it be something like this?

    mailto:myname@blahblah.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center