Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook object
Message
From
30/01/2001 17:01:26
 
 
To
30/01/2001 14:58:19
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00470073
Message ID:
00470365
Views:
40
>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

I have tested a couple of ideas but I haven't found any other way to send embedded html through Outlook.

Jake
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform