简体   繁体   中英

How to set security level in outlook

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: 在此处输入图像描述

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM