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 How to use JTNEF - Sending email with Voting buttons in Outlook. 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 "How to use JTNEF - Sending email with Voting buttons in Outlook." Watch "How to use JTNEF - Sending email with Voting buttons in Outlook." New topic
Author

How to use JTNEF - Sending email with Voting buttons in Outlook.

jem nas
Greenhorn

Joined: Aug 11, 2010
Posts: 6
Hi Experts,

I would like to send email in Java to MS Outlook that have Voting buttons.
I've researched that there is a library: JTNEF , but its hard to find document how to use it.

Anyone from you(community) already used this library?
Please really would appreciate if you could show me how send email in JTNEF that have Voting Buttons in Outlook.

Below is just simply sending in Java Mail API but how do I use JTNEF with it?

Thank you very much,
Jemru

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I tracked it down on the web, and when I read its home page, I didn't see anything at all which suggested that it could be used to help send e-mails using TNEF. But perhaps I didn't read too carefully -- what did you see on that page which I missed?
jem nas
Greenhorn

Joined: Aug 11, 2010
Posts: 6
Paul Clapham wrote:I tracked it down on the web, and when I read its home page, I didn't see anything at all which suggested that it could be used to help send e-mails using TNEF. But perhaps I didn't read too carefully -- what did you see on that page which I missed?


Hi Paul,

Here is brief document of JTNEF:

http://www.freeutils.net/source/jtnef/

Middle-level: the net.freeutils.tnef package gives you access to the entire TNEF content through simple Java objects representing the underlying TNEF data structures. You can use these classes to access all TNEF attributes and MAPI properties that were sent with the message. For example, you can choose to implement voting buttons or receipt notifications in your Java application by finding and interpreting the appropriate MAPI properties. This requires knowledge of the MAPI properties and their meaning.

When I downloaded the Package JTNEF, inside it include the source codes, and there are basic use use of TNEF. (I searched for "public static void main (String args[])").

I would really appreciate any help from you because I've been really searching how to use this.

Thank you in advance.
Jemru
jem nas
Greenhorn

Joined: Aug 11, 2010
Posts: 6
I had also emailed the author / support of the library at support@freeutils.net but am still waiting for his reply. Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Yes, that's the document that I found too. And the extract you posted says "This package gives you access to messages which contain TNEF content and allows you to extract and interpret that content." The part you bolded gives an example of how you can interpret that content: you could display voting buttons in your application.

I still don't see anything which can be interpreted as being able to produce TNEF content. Especially since the executive summary at the beginning says

The Java TNEF package is an open source code implementation of a TNEF message handler, which can be used as a command-line utility or integrated into Java-based mail applications to extract the original message content.






jem nas
Greenhorn

Joined: Aug 11, 2010
Posts: 6
Hi Paul Chapman,

Thanks for your reply but would like to clarify what you mean by "I still don't see anything which can be interpreted as being able to produce TNEF content. ".

Does it mean that I can still use this library to send email in Java to Outlook with voting buttons?
Or not, because I can only read properties of email but not produce?

Thank you very much,
Jemru
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Apparently the latter. But as Paul said, he only read the home page. It's possible that it does have this capability, and it's buried deep inside - if that's the case its web site does a lousy job of explaining what it does.
Gajen Pingalkar
Ranch Hand

Joined: Aug 29, 2006
Posts: 37
Finally, Anyone got to know, how to send mail with Voting Button to OutLook? If yes please let me know how to do this, any sample code will help lot. Thanks ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use JTNEF - Sending email with Voting buttons in Outlook.
 
Similar Threads
yahoo calendar access by java
java mail
SHA1 digest error for javax/mail/MessagingException
urgent help in java mail
How to send mail form java application