This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in reading headers

 
naaz abhi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am implementing one project using javamail.I need to access headers of email.
My problem is when I am using the getHeader method it returns me the Object value(I guess),e.g. I get result in this form: (Ljava.lang.String;@f0c0d3)
but I need to get the result in readable form like for "X-Mail-from" header I should see: xyz@abc.com, i.e. some email address.So how to convert that result.
please help me.

Thanks in advance
 
naaz abhi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It worked for me....nevermind
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic