Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mail & HTML
Message
 
À
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:
00368022
Vues:
55
>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.

I tried the above David and it did not like the oitem.htmlbody... line. Any clues as to why?
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform