Results 1 to 5 of 5

Thread: ASP and CDO

  1. #1
    VirtuallyVB
    Guest
    I am using CDO to send information from one form to a few different people. Everything is working fine but the body shows the link typed out instead of as a link. I thought there was something like objNewMail.BodyFormat = 1 or something like that which would make it work, but it's not working. I tried = 1 and = 0 and both showed the same thing. Does anyone know how to create a link in the email being sent through CDO?

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    per MSDN
    The Body property can contain either plain text or HTML. The BodyFormat property should be set to indicate whether or not the Body property includes any HTML.
    I'm assuming this means that it is up to the client to determine whether or not to process the body as HTML and format it accordingly (into a real link). Your email is still sent in plain text, it just includes some HTML code too.

  3. #3
    Lively Member ayyasaran's Avatar
    Join Date
    Feb 2001
    Location
    India
    Posts
    120
    Hi,

    Set Both BodyFormat and MailFormat as 0.

    e.g.

    Dim myMail
    Set myMail = CreateObject("CDONTS.NewMail")

    HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL
    HTML = HTML & "<html>"
    HTML = HTML & "<head>"
    HTML = HTML & "<meta http-equiv=""Content-Type"""
    HTML = HTML & "HTML = HTML & ""content=""text/html; charset=iso-8859-1"">"""
    HTML = HTML & "<title>Sample NewMail</title>"
    HTML = HTML & "</head>"
    HTML = HTML & "<body>"
    HTML = HTML & "This is a sample message being sent using HTML. <BR></body>"
    HTML = HTML & "</html>"

    myMail.From = "[email protected]"
    myMail.To = "[email protected]"
    myMail.Subject = "Sample Message"
    myMail.BodyFormat = 0
    myMail.MailFormat = 0
    myMail.Body = HTML
    myMail.Send
    Set myMail = Nothing


    Check it.

    Regards,
    Saran.

  4. #4
    Guest

    Lightbulb

    On behalf of whoever really posted this question, I am thanking those who answered.

    There was a weird identity issue:
    http://forums.vb-world.net/showthrea...threadid=55132

  5. #5
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323

    Thanks

    Thank you very much for the replies. I'm sorry I didn't get back sooner, but because of the username problem I didn't get an email stating anyone replied.

    That is exactly what I needed, thanks for hte help!
    If you think education is expensive, try ignorance.

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