Setting connection timeout

Top  Previous  Next

You can use the Pop#setTimeout method to define the maximum number of milliseconds to wait when establishing a connection to an POP3 server. Failure to establish a connection within the maximum time allowed will result in an exception of type PopException to be thrown.

 

Example

 

// set connection timeout to 5 seconds

pop.setTimeout(5000);

 

// establish connection

pop.connect();





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC