BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMailItem information

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Will1
Guest





PostPosted: Sun Jan 25, 2004 1:34 am    Post subject: TMailItem information Reply with quote



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





PostPosted: Sun Jan 25, 2004 12:55 pm    Post subject: Re: TMailItem information Reply with quote



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:
2.- source email
SenderName property + http://www.scalabium.com/faq/dct0142.htm


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





PostPosted: Mon Jan 26, 2004 6:53 pm    Post subject: Re: TMailItem information Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.