Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    UK
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to Carriage Return in Mailto text?

    How can I get a Carriage Return in Mailto text so that the email I am creating is more readable?

    Thanks in advance!

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    you're going to have to provide some actual details on this one. i have a pretty good idea of what it is that you're talking about, but i'd like know exactly what it is you want, before i give an answer. can you post the code that you're using, so that we can be sure what it is you're talking about?

    also, in the future, if you have two questions, that are very closely related, please put them in the same post. thanks.

    also, because i don't think that this is going to have anything to do with javascript, i'm moving it to the HTML & CSS forum
    Last edited by joh6nn; 11-10-2002 at 01:18 PM.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    New Coder
    Join Date
    Oct 2002
    Location
    UK
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nothing complicated - just want to break up a long block of text with carriage return and a blank line - as you would in writing text by pressing carriage return.

  • #4
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    yeah, but do you mean in a Textarea, or what? i can only guess at the method you're using to send the mail, so i can only guess at what the answer might be. if we could see the code that you're using, that would be great.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #5
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    ok, this is what you're doing, then:

    document.writeln('<a href="mailto:?subject=Pictures from PhotoAlbum&cc= &body=This is the body text&attachment='+filetosend+'">Email</a><br>');

    if that's the case, then, i think you can add line breaks, by using the \n character. i'm not positive of that, though. try it, and see.

    document.writeln('<a href="mailto:?subject=Pictures from PhotoAlbum&cc= &body=This is the body text\nSecond line of body\nThird line&attachment='+filetosend+'">Email</a><br>');
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •