Skip to content
Advertisement

Tag: jakarta-mail

How to read text inside body of mail using javax.mail

i’m developing a client mail using javax.mail to read mail inside mail box: I know that the method getContent() returns an object cause the content could be a String, a MimeMultiPart, a SharedByteArrayInputstream and other ( i think )… Is there a way to get always the text inside body of message? Thanks!! Answer This answer extends yurin’s answer. The

Advertisement