dcsimg

How can I set the timeout length for the different SMTP, IMAP, and POP connections?

John Zukowski

The JavaMail 1.2 API adds a system property mail.{smtp,imap,pop3}.connectiontimeout to add this capability. Prior to 1.2, you couldn't do this.