Hi , I was automating outlook 2016 with python. I was using the below code.
import win32com.client as win32
outlook = win32.Dispatch(‘outlook.application’)
mail = outlook.CreateItem(0)
mailTo = ‘abc.xy.xom’
mail.Subject = ‘test’
mail.Display()
mail.Sensitivity = 3
mail.Send()
now a days, outlook has an extra level of protection of what type of mail this is. So whenever I try to send a mail one pop up box will get opened titled as " Microsoft Azure Information Protection". we need click on “private” or “Confidential” etc then click on Send then mail goes. Can anyone tell me how it should be achieved with python Script? mail.Sensitivity = 3 I used but it didn’t work.
Can anyone help?