Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert plain text and not attachment
Message
From
04/12/2001 10:50:28
 
General information
Forum:
Visual Basic
Category:
COM, DCOM and OLE automation
Miscellaneous
Thread ID:
00589254
Message ID:
00589300
Views:
36
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
>...
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform