Hello Keith,
Are you using HTMLBody, rather than the body property of the mail item? Give this a try:
lcHTMLString = [<html><body>Hello <b>world</b></body>]
oOutlook = createobject("outlook.application")
oitem = oOutlook.createitem(0)
oitem.recipients.add("somebody@somewhere.com")
oitem.subject = "Test HMTL message"
oitem.HTMLBody = lcHTMLString
oitem.send()
>Hi All,
>
>I have a program that generates automated emails from Visual Foxpro 7.0 using Outlook 2000. I want to put HTML code into the body of the email, so when the recpient gets the email, they see the text formatted with the HTML code. THe problem I am having is that when the email is received and read, the recipient sees the HTML code and not the formatted text. How do I make it so the recipient sees the formatted text and not the HTML code? If anyone could help, I would appreciate it.
>
>Thank you in advance
>Keith
Steve Gibson