//Send activation email
//sendEmail(); Change the sequentially executed code to a new thread, the content below. will be executed synchronously
new Thread(){
public void run() {
try {
sendEmail ();
} catch (Exception e) {
e.printStackTrace ();
}
}
}.start();