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

10
LINES

< > BotCompany Repo | #1015972 // isValidEmailAddress

JavaX fragment (include)

1  
!include once #1015973 // JavaMail
2  
3  
static bool isValidEmailAddress(S s) {
4  
  try {
5  
    new InternetAddress(s).validate();
6  
    true;
7  
  } catch (AddressException ex) {
8  
    false;
9  
  }
10  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015972
Snippet name: isValidEmailAddress
Eternal ID of this version: #1015972/2
Text MD5: b8da945e105cb353b920cc381687fe05
Author: stefan
Category: javax / mail
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-02 14:14:13
Source code size: 191 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 408 / 455
Version history: 1 change(s)
Referenced in: [show references]