PC Review


Reply
Thread Tools Rate Thread

How to access attachment content

 
 
=?Utf-8?B?TGFj?=
Guest
Posts: n/a
 
      20th Oct 2006
I am writing an add-in which sends journal items as they created to a
specific user as a mail attachment, like this :

Outlook.MailItem MI = thisJournalItem.Forward();
MI.Recipients.Add("xyz");
MI.ReadReceiptRequested = false;
MI.Send();
....

When the forwarded item arrives to the inbox of the "xyz" user, this add-in
identifies the newly arrived mail and tries to access the attched journal
item :

Outlook.MailItem MI = Item as Outlook.MailItem;
Outlook.Attachments atts = MI.Attachments;
if (atts.Count == 1)
{
Outlook.Attachment att = atts[1];
....

At this point I am stucked because I could not find a way (a method or
property) to access the attached JournalItem. I could save it to a temp file,
but what after ?
On the other hand, in outlook I can see the attached item as a journal item,
so it must be there somewhere. How can I access it ?

Tanks,
Laszlo



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Attachment with different content spring Microsoft Outlook Discussion 3 15th Jul 2009 08:20 AM
Notify on attachment content SpaceCamel Microsoft Outlook VBA Programming 1 26th May 2009 03:53 PM
I have an email with attachment, but can't see the content icewine Microsoft Outlook Discussion 1 30th Apr 2009 06:21 AM
Attachment changes content =?Utf-8?B?YmVuZGxleA==?= Microsoft Outlook Discussion 3 14th Nov 2007 03:11 PM
How to open and extract the content in attachment? =?Utf-8?B?UmFqdSBB?= Microsoft Outlook VBA Programming 1 28th Aug 2007 02:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 PM.