Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting HTML code in Outlook Messages
Message
De
26/06/2002 12:19:59
 
 
À
26/06/2002 08:04:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00672398
Message ID:
00672528
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform