Confidential email creation programatically

Hello,

Using com.aspose.network.MailMessage i tried setting the Sensitivity level but its not working


Please find below the code snippet:


MailMessage mail = new MailMessage(); mail.setSubject(emailSubject); mail.setSensitivity(MailSensitivity.COMPANY_CONFIDENTIAL); mail.setSensitivity(MailSensitivity.PRIVATE);


My requirement is in Outlook it should be marked as Secured mail.


Hi,

Thank you for contacting Aspose support team.

Aspose.Network is discontinued and no more supported by Aspose. However, a more powerful and enhanced product Aspose.Email has replaced it containing lot of new features. Sensitivity of the mail can be set using Aspose.Email for Java 5.8.0 as shown in the following code. If we open this MSG or EML in Outlook, it is observed that its sensitivity is shown as Confidential.

MailMessage mail = new MailMessage("test@gmail.com","testgmail.com","Sensitive mail subject","Sensitive mail body");
mail.setSensitivity(MailSensitivity.CompanyConfidential);

I am afraid that I could not understand the term “Secure”. Do you want to encrypt or sign the message or something else? Please provide us details so that we may provide you assistance accordingly.