tags:

views:

156

answers:

2

In Outlook there are options to disabled replying to and forwarding of emails. Granted this is only a rudimentary level of security as someone can always copy / paste the email content, but it does prevent accidental forwarding of confidential emails.

My question is how can these options be disabled when sending a mail using Java? I am using Spring's JavaMailSenderImpl but could move to a different library if required.

Thanks in advance.

+1  A: 

Taking a look about and it appears that this is a feature of Microsoft Windows Rights Management Services so would likely require talking to that rather than just setting a header. But to test that send yourself a mail to say a GMail account and then use the "view original" option.

mlk
A: 

I found this on Scott Hanselman's blog, suggesting that this information isn't written into the email header as I had hoped, which suggests to me that disabling forwarding would be very difficult in pure Java without some interaction through JNI:

It only flips a metadata bit in the message and that metadata is only transmitted within Exchange (within your company). It is not propagated to outside email addresses.

Adamski