Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / June 2005

Tip: Looking for answers? Try searching our database.

How to get MailItem Subject using Redemption::ISafeMailItem object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kavita Joshi - 29 Jun 2005 09:20 GMT
Hi,

I have created outlook addin in VC6 ATL/COM. My add handles newmail event.
I want to replace all outlook objects with Redemption safe objects.
In that process when I tried replacing Outlook::_MailItem with Redemption::
SafeMailItem.
It is not giving all the information which outlook object supports.
I need to read subject of new email, but that property is not exposed by
redemption::ISafeMailItem.

Can anybody help me with this? Which object I need to use and how
implementation will work.
Sample code will be more of help.

Thanx in advance,

Kavita

P.S. I hope I am posting the query to correct forum.
Dmitry Streblechenko - 29 Jun 2005 21:58 GMT
NewMail event in Redemption passes in an instance of the
Redemption.MessageItem object (which can be used standalone and does expose
the Subject property) , not Redemption.SafeMailItem, which is designed to be
used with an Outlook Object Model object (assigned to the Item property) and
only exposes properties and methods blocked by OOm (Subject property is not
one of them).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hi,
>
[quoted text clipped - 16 lines]
>
> P.S. I hope I am posting the query to correct forum.
Kavita Joshi - 30 Jun 2005 05:27 GMT
Thanx for the reply Dmitry.

I have one more question, I hope I can continue same thread for that.

I am creating folder named "REPORT" through my addin.
I want to stop user from deleting that folder. What properites I need to set
for that?

thanx in advance...

regards,
Kavita
Dmitry Streblechenko - 30 Jun 2005 18:13 GMT
I don't think you'll have much luck with this: Outlook only prevents users
from deleting the default folders.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Thanx for the reply Dmitry.
>
[quoted text clipped - 9 lines]
> regards,
> Kavita
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.