+ Reply to Thread
Results 1 to 2 of 2

CDO Email

  1. #1
    Steph
    Guest

    CDO Email

    Hello. Thanks to Ron deBruin, I have the following piece of code that I
    modified from his website. The code in whole sends an e-mail.

    strbody = "This is a test"
    ..HTMLBody = "Click on the link to choose your file: <a
    href=""\\server\folder\file\file"">FolderName</a>" & vbNewLine & vbNewLine &
    strbody

    All I am trying to do is skip a few lines in the body of the e-mail between
    the hyperlink and the strbody string. If I change the .HTMLBody to
    ..textbody, this does skip lines, but the hyperlink is not formed. Using
    ..HTMLBody creates the hyperlink, but ignores the vbNewLine and does not skip
    lines. Any ideas? Thanks!





  2. #2
    Robin Hammond
    Guest

    Re: CDO Email

    Steph,

    I'm not sure about the vbnewline thing, but I have a CDO system running that
    appears to work by using a direct chr(10) code on an asp page.

    e.g.

    objCDOMail.Body = "We will send you a password as soon as possible" & _
    chr(10) & chr(10) & "Thanks," & chr(10) & chr(10) & "Robin Hammond"

    Alternatively, if the HTMLBody property is only accepting HTML and you are
    sending as html to an enabled mail client, have you tried using the html
    paragraph mark rather than a new line.

    e.g.

    </p><p>

    Robin Hammond
    www.enhanceddatasystems.com

    "Steph" <[email protected]> wrote in message
    news:[email protected]...
    > Hello. Thanks to Ron deBruin, I have the following piece of code that I
    > modified from his website. The code in whole sends an e-mail.
    >
    > strbody = "This is a test"
    > .HTMLBody = "Click on the link to choose your file: <a
    > href=""\\server\folder\file\file"">FolderName</a>" & vbNewLine & vbNewLine
    > &
    > strbody
    >
    > All I am trying to do is skip a few lines in the body of the e-mail
    > between
    > the hyperlink and the strbody string. If I change the .HTMLBody to
    > .textbody, this does skip lines, but the hyperlink is not formed. Using
    > .HTMLBody creates the hyperlink, but ignores the vbNewLine and does not
    > skip
    > lines. Any ideas? Thanks!
    >
    >
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1