Reading the full email from GMail using JavaMail

后端 未结 5 515
日久生厌
日久生厌 2020-12-29 16:53

I am making use of javamail and I am having trouble getting the HTML from my gmail emails. I have the following:

Session session = Session.getDefaultInstance         


        
5条回答
  •  渐次进展
    2020-12-29 17:01

    if you use java mail, you can use "multipart" and "bodypart" objects to go through the email message to extract the "text/plain" and "text/html" content, which are the content you want.

提交回复
热议问题