Search code examples
.netvbavisual-studiooutlookoutlook-addin

How to set Outlook 2013 -> File->Options->Mail-> Message Arrial settings through SDK?


I want to change below settings using outlook api.

enter image description here

I am using Visual Studio and outlook intercom library.

Is it possible to change these settings. I have referred this SO question Change Outlook settings using VSTO.


Solution

  • There is no programmatic way to read or set these options, but they are stored in the registry. You can set them directly, but Outlook would need to be restarted.

    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\15.0\Outlook\Preferences]
    "PlaySound"
    "ChangePointer"
    "ShowEnvelope"
    "NewmailDesktopAlerts"