CDOSYS

Discussion in 'ASP General' started by Oli, Dec 4, 2003.

  1. Oli

    Oli Guest

    Hi

    Using CDOSYS to send email:

    Code:
    strHTML = strHTML & "<td><b><font face=Verdana size=1
    color=#FF0000>&nbsp;<%=RSlist("pNumber")%></font></b></td>"
    
    This does not work! Putting <%=RSlist("pNumber")%> in above give the error:

    Error Type:
    Microsoft VBScript compilation (0x800A0401)
    Expected end of statement
    /connect.asp, line 56, column 85

    Any ideas? Reason it's doing it (I think) is because I am trying to put ASP
    within ASP!
    What is the correct way to do this?

    TIA
    Oli
    Oli, Dec 4, 2003
    #1
    1. Advertising

  2. "Oli" <> wrote in message
    news:bqm89d$qm2$...
    > Hi
    >
    > Using CDOSYS to send email:
    >
    >
    Code:
    > strHTML = strHTML & "<td><b><font face=Verdana size=1
    > color=#FF0000>&nbsp;<%=RSlist("pNumber")%></font></b></td>"
    > 
    >
    > This does not work! Putting <%=RSlist("pNumber")%> in above give the

    error:
    >
    > Error Type:
    > Microsoft VBScript compilation (0x800A0401)
    > Expected end of statement
    > /connect.asp, line 56, column 85
    >
    > Any ideas? Reason it's doing it (I think) is because I am trying to

    put ASP
    > within ASP!
    > What is the correct way to do this?
    >
    > TIA
    > Oli
    >
    >


    strHTML = strHTML &_
    "<td><b><font face=Verdana size=1 color=#FF0000>&nbsp;" &_
    RSlist("pNumber") &_
    "</font></b></td>"
    Chris Hohmann, Dec 4, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. René de Leeuw

    embed pictures in a cdosys sent message

    René de Leeuw, Jul 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    408
    René de Leeuw
    Jul 22, 2003
  2. martin

    cdosys.dll and sending mail

    martin, Jul 15, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,086
    wolfgangiron
    Jan 4, 2012
  3. Luqman
    Replies:
    0
    Views:
    385
    Luqman
    Nov 29, 2004
  4. Nitin

    cdosys

    Nitin, Apr 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    585
    =?Utf-8?B?RGF2ZSBCcml0dG9u?=
    Apr 15, 2005
  5. tshad

    CDOSYS problems

    tshad, Jun 23, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    394
    tshad
    Jun 23, 2005
Loading...

Share This Page