Forums Register Login

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

+Pie Number of slices to send: Send
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

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
I had also emailed the author / support of the library at support@freeutils.net but am still waiting for his reply. Thanks.
1
+Pie Number of slices to send: Send
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.







+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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 ...
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
https://gardener-gift.com


reply
reply
This thread has been viewed 4194 times.
Similar Threads
NoClassDefFoundError: javax/mail/Transportwhile exception sending email using javax.mail
Not able To Send Mail Outside Of Domain Name
java mail:send data from text box and attachment file from jsp page to mail.
JavaMail - Problem while sending file attachment
yahoo calendar access by java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:44:05.