'How to set email sensitivity in exchange `smtplib`

guys! Trying to work out how to send emails with a specific sensitivity. I need to send out some automated emails with the sensitivity set to "Confidential". (see the Microsoft docs on the topic)

I am sending these emails using smtplib. I've worked out how to set the priority with

msg = MIMEMultipart()

msg["From"] = sender
msg["To"] = ", ".join(recipients)
msg["Subject"] = subject
msg["X-Priority"] = "2"
msg.attach(MIMEText(body))

s = smtplib.SMTP(host)
s.sendmail(self.sender, recipients, msg.as_string())
s.quit()

and I figured there would be something like msg["Sensitivity"] or msg["X-Sensitive"] or something out there, but I couldn't find this anywhere. I appreciate your help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source