A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: mailto button action?

  1. #1
    Member
    Join Date
    Dec 2009
    Location
    Okanagan Valley, BC, Canada
    Posts
    33

    Question mailto button action?

    Hi folks,

    This little routine is driving me flippin barmy tonight!!!!!

    I'm carried out numerous similar routines in the past in conventional HTML and 3-4 times as a button action ... but this particular link refuses to work.

    Anyway, to cut to the chase, this script below WILL NOT! include the subject line on the email client .. and I don't know why?

    on (release) {
    getURL("mailto:contact@spca.bc.ca?subject=A-OK Member Enquiry");
    }


    I thought it was the "spca.bc.ca" causing the issue, or the subject string, but still no resolve. My previous example was a simple dot com with one word subject and works like a charm, so I am scratching my head on this one.

    Any help appreciated,
    Many Thanks!
    Researching, Visiting or Moving to the Okanagan Valley?
    www.okanaganforum.com

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    seems to work fine for me:

    actionscript Code:
    mail_btn.onRelease = function() {
        getURL("mailto:contact@spca.bc.ca?subject=A-OK Member Enquiry");
    }
    ;

  3. #3
    Senior Member
    Join Date
    Sep 2010
    Posts
    324
    The mailto seems to work but I sure don't see any subject listed... IE7, FF3.5
    What are you using to display the working version?
    VM

  4. #4

  5. #5
    Senior Member
    Join Date
    Sep 2010
    Posts
    324
    Huummm... I can never get a mailto to work directly from Flash... but it works fine from an html page but does not include a subject....but, I'm using Windows Live Mail.
    That's one of the drawbacks on using mailto, you are relying on the user having an email client that will work with "mailto".
    On sites that I build I don't use mailto for just that reason, and instead use a PHP script that will work regardless of what email client the viewer is using.
    Well, thanks anyway!
    Best wishes,
    Video Man

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