A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MailItem Attachment includes other objects



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 29th 08, 08:17 AM posted to microsoft.public.outlook.program_addins
murali@Blr
external usenet poster
 
Posts: 1
Default MailItem Attachment includes other objects

Hello,

In VSTO, Outlook Mailitem Attachment object includes all other objects
included in the mail item. For eg: In new mail item if we attach any
files and add image in the body of the mail. than in Code all
attachment files and images in the body are comes as attachment.

How to differentiate the Attachment files and other objects added
later?

thanks
muralidharan tr
Ads
  #2  
Old May 29th 08, 03:37 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default MailItem Attachment includes other objects

I'm not sure what you're getting at here. If you embed an image in an email
of course it's an attachment to that email. That it represents an embedded
image doesn't make it any less of an attachment.

You have to look at each attachment in the Attachments collection to see
what they are, using the attachment properties such as Type, DisplayName,
FileName, etc. For more detail you can use the MAPI properties on an
attachment such as PR_ATTACH_CONTENT_ID, PR_ATTACH_FLAGS, PR_ATTACH_METHOD,
PR_ATTACH_MIME_TAG. Some of those are always there and some are there for
only certain types of attachments such as embedded ones.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"murali@Blr" wrote in message
...
Hello,

In VSTO, Outlook Mailitem Attachment object includes all other objects
included in the mail item. For eg: In new mail item if we attach any
files and add image in the body of the mail. than in Code all
attachment files and images in the body are comes as attachment.

How to differentiate the Attachment files and other objects added
later?

thanks
muralidharan tr


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transform DocumentItem Objects as Outlook Item Objects in folder Wnick Outlook and VBA 5 February 22nd 08 07:59 PM
user name always includes my email address Kiwi Bill Outlook - Installation 4 August 30th 07 12:22 AM
How can I print a sent email that includes name of attachment? RWheeler Outlook and VBA 1 August 5th 06 08:19 AM
how do I print a day of my calendar that includes the categories? Roy Outlook - Calandaring 6 May 14th 06 03:14 AM
How can I create a MailItem that displays like a received MailItem ? Clive Outlook - Using Forms 0 February 27th 06 04:14 PM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.