visual-c++outlookoutlook-addinoffice-addinsmapi

Outlook 365 doesn't retain "New Messages" and "Replies/forwards" signature names


We have a plugin for Outlook which is developed using C++ MAPI. The scenario is as below. User creates a signature created by user (File-Options->Mail->Signatures and Stationery) e.g. TestSign01 and TestReplysign01. User selects two options as below in the drop down box on "Signatures and Stationery" dialog. New messages: TestSign01 Replies/forwards: TestReplysign01 Click Ok.

Now again open Signatures and Stationery dialog and if we see it, "New messages:" and "Replies/forwards:" dropdown box is refreshed and it shows nothing.

Strangely, it attaches correct signature for New Email and Reply/Forward emails.

Even I tried to open OutlookSpy->IOLKAccountManager(Miscellaneous)->Select Account->GetProperties It displays correct value for PROP_NEW_MESSAGE_SIGNATURE - 0x0016001F PT_UNICODE TestSign01 PROP_REPLY_SIGNATURE - 0x0017001F PT_UNICODE TestReplysign01

My question is, why it's not displaying both the selected signatures on Signatures and Stationery dialog? Any other property which also needs to be filled for the same? Anything that can help?

Please go through the below screen shot, showing OutlookSpy value and the Signatures and Stationery dialog of the same account where it shows "none".

enter image description here

Tried to check the return value for SetProp() function which shows success value.


Solution

  • While searching on net, I found the answer at https://answers.microsoft.com/en-us/outlook_com/forum/all/email-signatures-disappearing-every-time-i-shut/d2fc96da-0388-4576-9fad-ea7e575153fb?page=2

    Microsoft has introduced something called "Outlook roaming signatures" To fix the one needs to create registry described there on the page and it works fine.