How can I set Sensitivity or custom Sensitivity in an email?

Viewed 1058

I need to send emails with a confidential tag.

Our in-house custom tag is "Patient-Confidential", there is no "Confidential" under "Sensitivity" but "Patient-Confidential" is the 3rd item on the "Confidential" drop-down list.

The default Outlook tag for confidential is .Sensitivity=3, but it doesn't change the sensitivity.

How can I assign sensitivity, either MS Outlook "Confidential" or "Patient-Confidential"?

I successively tried the following variations:

With OutMail
    .To = recipient
    .Subject = strsubject
    .Body = strbody
    .Sensitivity = "Patient-Confidential"
    .Sensitivity = 3
    .oLSensitivity = 3
    .oLSensitivity = "Patient-Confidential"
    .Display
End With
1 Answers

Use the following code:

With OutMail
.To = recipient
.Subject = strsubject
.Body = strbody
.Sensitivity = OlSensitivity.olConfidential
.Display
End With

The MailItem.Sensitivity property returns or sets a constant in the OlSensitivity enumeration indicating the sensitivity for the Outlook item.

Related