Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert plain text and not attachment
Message
De
04/12/2001 10:50:28
 
Information générale
Forum:
Visual Basic
Catégorie:
COM, DCOM et OLE automation
Divers
Thread ID:
00589254
Message ID:
00589300
Vues:
37
Sorry for the trouble, but need some more help. What I do is...

- create a text file which could be from 4K to 14K.
- create Outlook object + mail item
- fillup the "To" recepients from a field from table
- fillup the body with contents of text file
- display the mail item to user and then they have a choice to modify the contents if they wish and they would click "send" button (that's why I use .Display method instead of .Send)

Is there a better way of avoiding the creation of text file and write directly to outlook?

Regards

P.S: Also, due to above procedure I am not able to release the outlook object as well since the user would do "send part".


>As an alternative, you can directly assign the body to the TStream.readall (see below)
>
>
>...
>     .Body = TStream.ReadAll
>...
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform