• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Sheriff
Posts: 28333
97
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had also emailed the author / support of the library at support@freeutils.net but am still waiting for his reply. Thanks.
 
Paul Clapham
Sheriff
Posts: 28333
97
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 once met a man from Nantucket. He had a tiny ad
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic