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?
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?
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?
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.
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.
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?
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.
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 ...
Post by:autobot
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
a bit of art, as a gift, that will fit in a stocking