help with mailto: URGENT

Filed under: nnxj.com — jane @ March 15, 2010 edit
  • Ok, well im trying to simply open a mail client and have a preset message with the click of a button.

    This is what i have, and it works so far.

    var sendfriend_btn:Button;
    sendfriend_btn.onRelease = function()
    {
    getURL("mailto:you@somedomain.com (you@somedomain.com)");
    };

    How do i add a subject and some body text to this mail function???
    should be an easy one for you guys.

    Thanks,

    Luke


  • getURL("mailto:name@place.com?subject=asdasfasdfasfdasdf&body=asfasdfasdf")


  • wow, what a crazy place to work!


  • Well, I'm not exactly godlike or I wouldn't be freezing my bits off down here ;)


  • Use the standard value/pair construction to append a subject and/or body text to the email:
    getURL("mailto:you@somedomain.com?subject=" + escape("Subject title goes here") + "&body=" + escape("Body text goes here"));

    You can also use:
    getURL("mailto:you@somedomain.com?subject=" + escape("Subject title goes here") + "&body=" + escape(emailBody.text));

    where emailBody is an instance of an input textfield in your movie that the user can fill in.

    Although you can enter the text as creatify suggests, if you (or the user) plan on using any special characters in the subject or the body, you'll need to encode it otherwise the formula might break. The escape function will do the encoding for you.


  • you guys are GODS

    thank you so much...

    PS are you really in antarctica?







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about help with mailto: URGENT , Please add it free.