Welcome, Guest
  • Author Topic: new to scripting opening email using javascript mailto:  (Read 3677 times)

    gordon

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Hello,

    Can anyone help! I have working with with flash mx for about 6 months so scripting can be difficult.

    I was wondering if anyone new how to use the javascript command to open up the users webmail address and input my emaill address into the to: section so users can send emails to myself by hitting one button.

    also i have been having trouble using the pop-window generator as when i add the content and want to view an image it is opening a blank screen and not finding the image located in a particular folder.

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    why you dont use mailto:youraddress@dot.com inside of flash with getUr ?

    gordon

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    helllo

    dont understand i ahve the following code in my file

    on (release) {
    getUrL("javascript mailto:gordon@gcfolio.com","_blank");
    }

    do u mean that i take away the geturl
    and just write

    mailto:gordon@gcfolio.com in the button

    or do i call this action in the html source code

    thanks for replying so quick

    gordon

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Hi Gordon,
    who told you, that this is JavaScript?
    This is plain HTML, which can, as Vesa mentioned, be called directly either with an action in a flash button, or as a link in the html page.

    Inside of html it is:
    Code: [Select]
    <a href="mailto:yourMail@yourServer.com">Mail me</a>

    or in a button:
    Code: [Select]
    on(release){
       getURL("mailto:yourMail@yourServer.com");
    }
    Both accept parameters:

    mailto:yourMail@yourServer.com?subject=Subject of your mail&Body=Body of your mail

    prepairs a complete email in the mail client of the user.
    « Last Edit: 05/28/04, 12:46 by Ronald Wernecke »
    happy flashing
    8)
    Ronald

    gordon

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Hi cheers for the reply's

    Got it sorted.

    CHEERS AGAIN ;D