CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Posts
    16

    HTML Carriage Return on mailto string

    I making an html to send an email with mailto: command. The procedure is i made a function:

    raceracerace=""
    raceracerace=raceracerace + "any string"
    raceracerace=raceracerace + "any string2"

    function emailrace(){

    location.href = 'mailto:[email protected]?subject=' + 'subect' + '&body=' + raceracerace;

    }

    but in the middle of:
    raceracerace=raceracerace + "any string"
    raceracerace=raceracerace + "any string2"

    I need to put a carriage return to put that result on my body of mailto command like is on my funtcion i tried this and not work:

    raceracerace=raceracerace + "any string" + "'"
    raceracerace=raceracerace + "any string2"

    I tried this too and nothing:
    raceracerace=raceracerace + "any string" + "<br>"
    raceracerace=raceracerace + "any string2"

    Anyone know how to put a carriage return where i need? All of the rest is working perfect my function and all only is the carriage return on the string.
    Thank you

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: HTML Carriage Return on mailto string

    %0A
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Aug 2009
    Posts
    16

    Re: HTML Carriage Return on mailto string

    Thank you man it works!!!

  4. #4
    Join Date
    Aug 2009
    Posts
    16

    Re: HTML Carriage Return on mailto string

    I have another issue maybe someone can help me. I have the string but now i want to kind of encrypt or something like that my variable raceracerace to after send the mail decrypt. Somenoe know how to do that? Thank you

  5. #5
    Join Date
    May 2002
    Posts
    10,943

    Re: HTML Carriage Return on mailto string

    Encryption from the client-side is worthless. Anyone can see how it is being done. True security must come from the server-side.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

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

Featured