Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook object
Message
 
 
À
30/01/2001 14:58:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00470073
Message ID:
00470365
Vues:
39
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform