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#
{count} votes

Your answer

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