Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top