Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1007891 // imapCheckConnection

JavaX fragment (include)

1  
!include once #1015973 // JavaMail
2  
3  
static void imapCheckConnection(S server, S user, S pass) ctex {
4  
  new Properties props;
5  
  props.setProperty("mail.store.protocol", "imaps");
6  
  Session session = Session.getInstance(props, null);
7  
  Store store = session.getStore();
8  
  store.connect(server, user, pass);
9  
  store.close();
10  
}

Author comment

Began life as a copy of #1003711

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007891
Snippet name: imapCheckConnection
Eternal ID of this version: #1007891/4
Text MD5: e164b4d1f8cc91b48e4b5af69e2d1db1
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-19 16:03:51
Source code size: 332 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 537 / 552
Version history: 3 change(s)
Referenced in: [show references]