A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: mailto URL email formatting

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Posts
    109
    I'd like to know (if possible) how to format the body of an email by using the getURL mailto action.

    mailto:test@testing.com?subject=test&body=Name:

    I can put a couple of words into the body quite easily but how do I put in Breaks ?

    I want to have fields such as

    Name:

    Position:

    etc:

    So that the recipient can complete and send back.


  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    This should do it...

    "mailto:test@testplace.com"+"?subject=test&body=on e:"+"\r"+"two:"+"\r"+"three:";



    ~mgb

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Posts
    109

    erm no luck

    I tried what you suggested but it still puts the body like this

    one:two:three:

    and not

    one:

    two:

    three:

    The email client that is being launched is Outlook Express.. any more idea as to whats going on?

    I take it that the return character is "\r" to put the space in ?

    mr-p

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    ... replace the \r by \n, since mailers do not always like the \r
    ... next replace the \n by its urlencoded value %0a, so nothing gets upset by a return in the url

    So actually use %0a for your line breaks

    Musicman

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Posts
    184

    Arrow error message

    when i type all that in as above:

    (mailto:bla@bla.net"+"?subject=bla&body=bla"+"%0a" +"bla"+"%0a");

    flash5 gives me the error messge: line2: ')' or ',' expected

    what to do about that syntax?

    slimpixi

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Posts
    184

    Post oops

    that's

    ("mailto:.......)

    slim

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