How to set security level in outlook

Viewed 30

Hi I am developing a functionality that sends emails to outlook accounts under company domain. I am using javax.mail:

        MimeMessage msg = new MimeMessage(session);
        msg.setRecipients("to", InternetAddress.parse(to));
        msg.setFrom(new InternetAddress(from));
        msg.setSubject(subject);
        msg.setSentDate(new Date());
        msg.setContent(content);
        Transport.send(msg);

I want my messages to be titled in Outlook like this: enter image description here

Is it possible to do? Is it possible to indicate C4 level of security somehow from java code?

1 Answers

Looks like you are interested in setting up MIP sensitivity label on the email. See C# - Add MIP specific headers to MailMessage for more information.

I'd recommend exploring the Outlook internals with labels set using MFCMAPI or OutlookSpy, so you could find what exactly should be set up for the message on the sender side.

Related