javamail - Java Mail API read message body problem -
I have a question about receiving email from a SMTP server so I should get a message from the server and get his body But I have a problem with it. I tried to get the input stream of the message and read it all but it really reads all the contents of the message, so my question is how can the Java Mail API read the mail system from the part and part of the title?
I search in Google but not with success. I'm sorry, if the question looks stupid but I'm starting at the Java Mail API.
Thanks in advance.
try it
You can read the message body using the getContent method .
There is an extraordinary well-written resource on the JavaMail API (MimeMessage) message) .getContent ();
Comments
Post a Comment