This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Mail API - Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Mail API - "Do not Forward" permission setting" Watch "Mail API - "Do not Forward" permission setting" New topic
Author

Mail API - "Do not Forward" permission setting

swapnil paranjape
Ranch Hand

Joined: May 15, 2005
Posts: 126
Hello,

I am trying send the email using java mail API and want to enable the option "Do not Forward" under permission (in outlook 2007) while sending email. Can you please suggest me some pointers to do it?

I dont want the user to forward , print copy the email .


is there any attribute setting for this ? (e.g. to send mail with high priority x-priority is used)

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Here's how to find out:

(1) Send a message with that attribute turned on, and another message which is identical except it doesn't have that attribute turned on.

(2) Use JavaMail to look at the mailbox they were sent to, read the two messages and compare them.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
swapnil paranjape wrote:I dont want the user to forward , print copy the email .

That is a folly that will not succeed. If the user can read the mail, then she can copy it and do whatever she wants with it. If you don't trust a particular user with certain content, then don't give it to them.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I actually tried to use that option in Outlook. However when I did that it wanted me to sign up for Microsoft's "Information Rights Management" service and it told me I would have to use a Windows Live ID to use the service.

So I don't think that trying to replicate whatever all of that is for in JavaMail is going to be a simple process.
swapnil paranjape
Ranch Hand

Joined: May 15, 2005
Posts: 126
Thanks for the reply. The "Do Not Forward" setting is under Permissions on the new email . This is specific to outlook 2007. If we have to use same feature in outlook 2010 then it is required to sign up for Rights management.

When email is sent using "DoNotForward" , you cannot copy , forward or print the mail. This is useful when you send confidential data like passwords ,promotions, ratings, pins to the end users and don't want them to forward it to anyone.

I could not find any support for MS Exchange Information Rights Management settings within MAPI or SMTP. Does anyone know how to do it using vb script or .net code?

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Since nothing prevents a user from re-typing the contents, or taking a screenshot of the contents, such measures just aggravate users without providing a real benefit. It might even make them more likely to want to share the content out of spite. Sure, fewer will do it. But those that do will be more highly motivated. Rarely are there technological solutions to sociological problems.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Mail API - "Do not Forward" permission setting
 
Similar Threads
how to make editable page non editable when i press save?????
regd. Email with an attachment
Tomcat and javamail
Java Mail API / getDefaultInstance and Authenticator
Sending mail on click !