Share via

Getting sensivity level msg while sending mail through c# code console app

N 1 Reputation point
2022-12-05T11:54:42.413+00:00

we are using c# to send outlook mail activity.
but we are getting one pop up please select level public or confidential every time.

I tried to add below code but still not working.

OutlookNM.MailItem oMsg = (OutlookNM.MailItem)oApp.CreateItem(OutlookNM.OlItemType.olMailItem)

            oMsg.Sensitivity = OutlookNM.OlSensitivity.olNormal  

after adding the above line still I am getting same level popup.

Exchange | Exchange Server | Development
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.