Results 1 to 8 of 8

Thread: mailto

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Posts
    67

    mailto

    Hi,

    When adding a mailto link to a page I need to have a to, subject and body fields with text in.

    I have all three working with:

    <a href="mailto:[email protected]?Subject=thisisatest&amp;body=blah blah blah">email</a>

    The thing is I need to apply a <br> type command to the body text as it all appears on one line and I need like two paragraphs...


    Can anyone help pls?

    TIA !

    housey

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I think you can use %0D%0A for new lines. Also when you have spaces in an e-mail make sure you replace them with %20 as some browsers don't like spaces.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Posts
    67

    thanx !

    Thanx for your reply Rick but %0D%0A didn't work. I used:

    <a href="mailto:[email protected]?Subject=thisisatest&body=blah blah blah %0D%0A blah blah">email</a>

    I that correct?

    Also do u know how to inlcude a 'from' field?


    Thanks again !!

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Oh sorry, I know I've got it to work before, and I was sure it was that. I'll try to figure it out. I don't think you can change the from field as that's determined by the user's e-mail client's settings, I could be wrong though.

  5. #5
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292
    0D 0A is the hexadecimal value for carrige return line feed
    i tried it to make sure and it does work

    are you sure you are using 0 (number) and not O (letter)?

    bsw2112

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I found him on another forum and he said it does work, just not on his computer (at least I think it's him, either that or someone's coping him ).

  7. #7
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Posts
    67
    Thanks guys !

    YES it was me on the other forum !

    It is working now.... shame about the 'from' field... i'll just have to do it in server script which is a bummer as I wanted to keep it all html/java...

    THANKS !!!


    Tim

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