Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mail & HTML
Message
De
09/05/2000 23:44:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00367924
Message ID:
00367959
Vues:
57
Carlos,

>Then I used the mapi mail from Nigel Coates, but I can´t put the HTML file into the body, I can do it as an attach, but my need is to put it into the body.

I don't know about doing this in MAPI interface, but if working directly with the Outlook Object Model, you have a "HTMLBody" property and a "Body" property for each email item.

If you put valid HTML into the HTMLBody property it will be sent as an HTML email message (spaces added in HTML to fool UT parser):
o=createobject("outlook.application")
oitem=o.createitem(0)
oitem.display
oItem.Recipients.Add("email address or name from address book")
oitem.subject="HTML Test"
oitem.htmlbody="< HTML>< BODY>< H1>Headline< /h1>< /body>< /html>"
oitem.send
oitem=null
o=null
This is documented in "VBAOUTL9.CHM" help, which you should have with your Outlook installation.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform