Recent projects need to read e-mail attachment content Java, encountered some problems simply record:
1, an authorization code to open the mailbox, the mailbox using the authorization code landing
2, if the connection process error:. NO Select Unsafe Login Please contact [email protected] for help, this probably means wrong is "You can not log in using e-mail software to third parties, so very safe, or use our products now! "
Solution: http://config.mail.163.com/settings/imap/[email protected] visit this link, via the phone number validation, problem solving (Note: I use the NetEase e-mail)
3, read unread messages, pop agreement does not read property, is said to SMTP can get to this property, but I repeatedly tried several times to take or not, want a temporary solution, and then the follow-up study it. By the way, if you need to get home after the number of messages as read is required READ_WRITE, otherwise you can READ_ONLY.