Carriage Return / Line feed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    Carriage Return / Line feed

    Hi,

    I want to send an Email using ASP (I know how to to this)
    The body of the Email contains several variabels
    How do I concat string values and separate them by carriage returns/ Line
    feeds?

    Any help will be greatly appreciate.

    Regards,

    Arnoud


  • Peter Foti

    #2
    Re: Carriage Return / Line feed

    <Arnoud Oortwijk> wrote in message
    news:406c503e$0 $1966$ba620e4c@ news.skynet.be. ..[color=blue]
    > Hi,
    >
    > I want to send an Email using ASP (I know how to to this)
    > The body of the Email contains several variabels
    > How do I concat string values and separate them by carriage returns/ Line
    > feeds?[/color]

    Assuming your ASP code is using VBScript (not JScript), use the vbCrLf
    character. For example:

    myStr = "This is line 1." & vbCrLf & "This is line 2."

    Hope this helps,
    Peter Foti


    Comment

    • Evertjan.

      #3
      Re: Carriage Return / Line feed

      Peter Foti wrote on 01 apr 2004 in
      microsoft.publi c.inetserver.as p.general:
      [color=blue]
      > <Arnoud Oortwijk> wrote in message
      > news:406c503e$0 $1966$ba620e4c@ news.skynet.be. ..[color=green]
      >> Hi,
      >>
      >> I want to send an Email using ASP (I know how to to this)
      >> The body of the Email contains several variabels
      >> How do I concat string values and separate them by carriage returns/
      >> Line feeds?[/color]
      >
      > Assuming your ASP code is using VBScript (not JScript), use the vbCrLf
      > character. For example:
      >
      > myStr = "This is line 1." & vbCrLf & "This is line 2."
      >[/color]

      Depending on the requirements of the email component used.

      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      • Randy Rahbar

        #4
        Re: Carriage Return / Line feed

        > I want to send an Email using ASP (I know how to to this)[color=blue]
        > The body of the Email contains several variabels
        > How do I concat string values and separate them by carriage returns/ Line
        > feeds?[/color]

        body = body & "This is line one" & vbCrLf
        body = body & "This is line two" & vbCrLf

        Is that what you mean?


        Comment

        • Guest's Avatar

          #5
          Re: Carriage Return / Line feed

          Excellent thanks all


          "Randy Rahbar" <rvrahbar@_JUNK ETY_JUNK_hotmai l.com> wrote in message
          news:e5QPXABGEH A.3288@TK2MSFTN GP12.phx.gbl...[color=blue][color=green]
          > > I want to send an Email using ASP (I know how to to this)
          > > The body of the Email contains several variabels
          > > How do I concat string values and separate them by carriage returns/[/color][/color]
          Line[color=blue][color=green]
          > > feeds?[/color]
          >
          > body = body & "This is line one" & vbCrLf
          > body = body & "This is line two" & vbCrLf
          >
          > Is that what you mean?
          >
          >[/color]


          Comment

          • Maarten

            #6
            Re: Carriage Return / Line feed

            if vbCrLf is specified:

            vbCrLf = Chr(13)&Chr(10)


            Comment

            • Aaron Bertrand [MVP]

              #7
              Re: Carriage Return / Line feed

              It's a built-in constant and doesn't need to be specified.

              --
              Aaron Bertrand
              SQL Server MVP



              "Maarten" <nobody@pandora .be> wrote in message
              news:gWYac.5773 1$aM2.3371129@p hobos.telenet-ops.be...[color=blue]
              > if vbCrLf is specified:
              >
              > vbCrLf = Chr(13)&Chr(10)
              >
              >[/color]


              Comment

              Working...