Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook object
Message
De
30/01/2001 14:58:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00470073
Message ID:
00470278
Vues:
55
Hi Jake,

For the htmlbody property, it has to assign this property to a string. To use this property, I have to write code to open the html file, read the file and assigns the contents of the html file to a string. And then assign the string to the htmlbody property. It works. Please note the code below.


lcFileName = "test.html"
lcfilehandler=fopen(lcFileName)
nSize = FSEEK(lcfilehandler, 0, 2)
=fseek(lcfilehandler,0,0)
lcHTMLBody = FREAD(lcfilehandler, nSize)
=fclose(lcfilehandler)

with oOutLookMail
.cc = ldMail
.subject = "test"
.HTMLBody = lcHTMLBody && Set the htmlBody here
.send
endwith


Is there any outlook property or method that can read the html file directly as an email message body without using fopen(), fread(), fseek().


Hong
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform