문제

I have been using the JavaMail API for quite sometime now and I have been implementing the POP3 protocol.
I am planning to implement the IMAP protocol now and wanted to know what are the necessary properties that I need to set for supporting IMAP.
I have currently set the following properties -

Properties props = System.getProperties();
props.setProperty("mail.imap.ssl.enable", "true");
props.setProperty("mail.imap.connectiontimeout", strConnectionTimeOut);

Are there any mandatory properties that need to be set in order to support IMAP?
Any help/advice is appreciated. Thanks in advance.

도움이 되었습니까?

해결책

No properties are mandatory. What you need to set depends on the mail server you're using.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top