A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: flash Mailto with preformatted email????

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    18

    flash Mailto with preformatted email????

    Im trying to created a webform another way since internet explorer sucks and requires to much babying.

    I have basically set a mailto button at the bottom of my page.

    With the mailer address and subject coming up when you click the button.

    Now what i need to know is there anyway i can get the body with a preformatted message. Ie the form.

    I thought i could create a box called body and write it in there, but for some reason the click button will only work with one line messages and as soon as i try to do more it stops working...

    the button action

    on (release) {
    getURL("mailto:" + to + "?subject=" +subject+ "&body=" + body);
    }

    any ideas or help?!?!?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    try something similiar to this -
    Code:
     emailBtn.onPress = function() {
    nnl = "%0A";
    name = "[email protected]";
    subject = "I have a qwestiun";
    yourname = "who am i ?";
    sex = "what am i ?";
    city = "where am i ?";
    age = "when am i ?";
    code = "encrypted";
    telephone = "black and silver"
    emailAddress = "[email protected]";
    comments = "tested and working";
    
    getURL ("mailto:"+name+"?subject="+subject+
    "&body=Name: "+yourname+nnl+nnl+
    "City: " +city+nnl+
    "Sex: "+sex+nnl+
    "Age: "+age+nnl+
    "Postal Code: "+code+nnl+nnl+
    "Telephone: "+telephone+nnl+
    "email: "+emailAddress+nnl+nnl+nnl+
    "Comments: "+comments);
    }
    note: mailto is dependant on user OS browser/email settings
    so it is not the most reliable of methods

    if possible, use a server side script to send the mail

  3. #3
    Junior Member
    Join Date
    May 2007
    Posts
    18
    Solved had to use hexidecimal whatnots cheers for the help

  4. #4
    Gerard_pp
    Join Date
    Aug 2007
    Posts
    69
    sience 2003 it is still helping!!!

    thanks
    Figure out a way to solve it... i'm not gonna be here forever...

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