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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement