Determine is Outlook.MailItem is created from OFT file

Add-in Express™ Support Service
That's what is more important than anything else

Only registered users are allowed to subscribe.
Determine is Outlook.MailItem is created from OFT file
Jeremy Bean

Posts: 3
Joined: 2019-03-18
I'm trying to have logic that works differently when a user opens an OFT file than when they open a MSG file. I can't seem to find a way to determine filetype that created the MailItem (or inspectors).

Is there any way to determine this?

Posted 15 May, 2019 07:06:42 Top
Andrei Smolin

Add-in Express team

Posts: 16080
Joined: 2006-05-11
Hello Jeremy,

I suppose this cannot be solved in the generic case: I don't see anything in properties of a mailitem created via Application.CreateItemFromTemplate("C:\Users\{user profile}\AppData\Roaming\Microsoft\Templates\MyTestOFT.oft"). Can you add something to the OFT so that your code could recognize it?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 May, 2019 09:15:07 Top