Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top