Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI/ID namespace values for email attachments?

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
0
0
GB
Does anyone know what the correct value needs to be for
Code:
PR_ATTACH_CONTENT_ID

I've got as far as defining the constant
Code:
Const PR_ATTACH_CONTENT_ID = "[URL unfurl="true"]http://schemas.microsoft.com/mapi/id/"[/URL]

But i have no idea what the GUID & value needs to be to access the content-id property?

I have
Code:
Const PR_ATTACH_MIME_TAG = "[URL unfurl="true"]http://schemas.microsoft.com/mapi/proptag/0x370E001E"[/URL]
Const PR_HIDE_ATTACH = "[URL unfurl="true"]http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8514000B"[/URL]

But cannot find any info on the net as to what the GUID and value needs to be to refer to email attachments?

I'm trying to replcae CDO 1.2.1 to use OOM, but i just seem to be going round in circles!

The code i have for changing standard attachments to inline mime encoded is as follows...
Code:
        ' Set attachments
        Set colAttach = l_Msg.Attachments

        ' loop and set items as mime attachments
        For x = 1 To Items.Count
            Set l_Attach = colAttach.Item(x)

            Set oPA = l_Attach.PropertyAccessor
            oPA.SetProperty PR_ATTACH_MIME_TAG, ItemTypes.Item(x)
            oPA.SetProperty PR_ATTACH_CONTENT_ID, "item" & x
            oPA.SetProperty PR_HIDE_ATTACH, True
            l_Msg.Save
        Next x
But i cannot for the life of me find what the value for the namespace constants should be.

All help is appreciated.

1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
It's OK, worked it all out in the end with a little help from TT!

I'll be writing an FAQ including a CDO & OOM email wrapper class, when they fix the FAQ submission system!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top