| View previous topic :: View next topic |
| Author |
Message |
Will1 Guest
|
Posted: Sun Jan 25, 2004 1:34 am Post subject: TMailItem information |
|
|
I have MailItem Object connected to a folder of a OutlookApplication
component, how can I know the following information :
1.- destination email(s)
2.- source email
3.- how can I open the attachments with the rigth program?
It's all for now thanks a lot
--- posted by geoForum on http://delphi.newswhat.com
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Sun Jan 25, 2004 12:55 pm Post subject: Re: TMailItem information |
|
|
| Quote: | I have MailItem Object connected to a folder of a OutlookApplication
component, how can I know the following information :
1.- destination email(s)
See the Recipients collection |
| Quote: | 3.- how can I open the attachments with the rigth program?
Iterate thru Attachments collection and call the ShellExecute function for |
every item
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
|
|
| Back to top |
|
 |
Will1 Guest
|
Posted: Mon Jan 26, 2004 6:53 pm Post subject: Re: TMailItem information |
|
|
Mike
I try your code but in the following line:
objCDO := CreateOLEObject('MAPI.Session');
I receive the eeror message (EolesysError 'String of class not valid')
also in
objMsg := objCDO.GetMessage(itemOL.EntryID, itemOL.Parent.StoreID);
I cant find the property StoreId of the MailItem.Parent object
--- posted by geoForum on http://delphi.newswhat.com
|
|
| Back to top |
|
 |
|