Distinguish visible and invisible attachments with Outlook VBA

前端 未结 3 1842
情书的邮戳
情书的邮戳 2020-12-03 18:33

The requirement is to upload attachments to a server. However, we only want to upload those appears in the \"Message\" line (see pic below) of outlook, nothing else in the e

3条回答
  •  情书的邮戳
    2020-12-03 18:59

    Some attachments always have the MIME content id (PR_ATTACH_CONTENT_IDenter code here), in particular messages from Lotus Notes always have that header.
    The real test is to check the HTMLBody property and see if any attachments are actually referenced by the img tags. Redemption lets you distinguish attachment like that using the RDOAttachment.Hidden property.

提交回复
热议问题