Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting HTML code in Outlook Messages
Message
From
26/06/2002 12:19:59
 
 
To
26/06/2002 08:04:09
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00672398
Message ID:
00672528
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform