when reading mail, how do I get the message content INCLUDING its headers
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dana_Geva
Posted On:   Monday, August 6, 2001 01:48 PM

How can I get an email message content including its headers? All the methods javax.mail.Message.getContent(), javax.mail.Message.MimeMessage.getInputStream() return only the message content without the headers.

Re: when reading mail, how do I get the message content INCLUDING its headers

Posted By:   Jason_Knox  
Posted On:   Tuesday, August 7, 2001 10:36 PM

use the method javax.mail.Message.getHeader(String headFileds)or javax.mail.Message.getSubject()
javax.mail.Message.getFrom
javax.mail.Message.getRecipients(Message.RecipientType type)

Re: when reading mail, how do I get the message content INCLUDING its headers

Posted By:   John_Zukowski  
Posted On:   Monday, August 6, 2001 02:13 PM

message.writeTo(System.out)
About | Sitemap | Contact