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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Differentiate between real attachment & embedded image inside mail



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 31st 08, 04:56 AM posted to microsoft.public.outlook.program_vba
Kctan80
external usenet poster
 
Posts: 1
Default Differentiate between real attachment & embedded image inside mail

Greeting all,
How can i differentiate between embedded image inside body of email & image
that attached inside mail itself. When i looking into MailItem.Attachments
object, it contains these 2 images with no indication whether this image is
belong as embedded image or attachment.
Please help. Thanks.
Ads
  #2  
Old July 31st 08, 02:44 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Differentiate between real attachment & embedded image inside mail

See http://www.outlookcode.com/codedetail.aspx?id=52

--
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


"Kctan80" wrote in message
...
Greeting all,
How can i differentiate between embedded image inside body of email &
image
that attached inside mail itself. When i looking into MailItem.Attachments
object, it contains these 2 images with no indication whether this image
is
belong as embedded image or attachment.
Please help. Thanks.


  #3  
Old September 17th 08, 05:40 AM posted to microsoft.public.outlook.program_vba
Robert Achmann
external usenet poster
 
Posts: 1
Default Differentiate between real attachment & embedded image inside

Ok - what if you just want to access the property of the attachment that lets
you know what the CID is for an embedded image attachment?

Do this just using VSTO objects and MAPI properties found within the
MailItem.Attachments[x] item, no third party library...


"Ken Slovak - [MVP - Outlook]" wrote:.

See http://www.outlookcode.com/codedetail.aspx?id=52

--
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


"Kctan80" wrote in message
...
Greeting all,
How can i differentiate between embedded image inside body of email &
image
that attached inside mail itself. When i looking into MailItem.Attachments
object, it contains these 2 images with no indication whether this image
is
belong as embedded image or attachment.
Please help. Thanks.



  #4  
Old September 17th 08, 02:19 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Differentiate between real attachment & embedded image inside

VSTO has nothing to do with it.

Unless you are using Outlook 2007 where you can use the new PropertyAccessor
object of the Attachment then you can't do what you want using only the
Outlook object model. If you are using Outlook 2007 you could use something
like this to get PR_ATTACH_CONTENT_ID, assuming that "oAtt" is an attachment
object:

oAtt.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E")

Note that what looks like an URL is actually the property tag for
PR_ATTACH_CONTENT_ID using DASL syntax and is passed as a string.

You couldn't use CDO 1.21 for that, it's not supported for any managed code.
You couldn't use Extended MAPI, that's also not supported for managed code
and is only programmed using C++ or Delphi.

So those are your choices, use Outlook 2007 or Redemption or forget it.

--
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


"Robert Achmann" wrote in message
...
Ok - what if you just want to access the property of the attachment that
lets
you know what the CID is for an embedded image attachment?

Do this just using VSTO objects and MAPI properties found within the
MailItem.Attachments[x] item, no third party library...


 




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
How to reconstitute message with embedded image MA[_2_] Outlook and VBA 5 October 31st 07 08:29 PM
Attachment as a field, not inside e-mail message vt003 Outlook - General Queries 1 October 3rd 07 05:52 PM
Embedded image moved to file problem Yobbo Outlook - General Queries 1 June 6th 07 07:58 PM
How to send a mail with a embedded attachment? Jimmy Outlook - General Queries 2 October 18th 06 06:16 AM
Embedded image in email - PCX file extension Glyn Elrod Outlook Express 27 February 13th 06 04:51 PM


All times are GMT +1. The time now is 04:06 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.