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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only