Question Recognize OL-Attachments as inbound rsp. attached

ahstax

New member
Joined
Nov 27, 2013
Messages
4
Programming Experience
1-3
Hello,

I'm trying to identify an email's attachment as "inbound" in the mail body, e.g. as logo or the like, or as "not inbound" attached to the email.
The inbound attachments are not shown in the OL-attachment listing but are part of "mailitem.attachments". The not inbound attachments are the ones listed in the OL-Attachment listing.

With the following piece of code (VB.net) the attachments are saved without the check.

...
For i = 1 To intAttachments
objNewMailItem.Attachments.Item(i).SaveAsFile(strPath & .Attachments.Item(i).FileName)
Next i
...

Could you please give me advise how one could hanlde it?

Regards,
Andreas
 
Back
Top