protected void mailChangeEmailLink(U user){
  try {
    log.debug("Mailing change email link to user: " + user);
    String changeEmailLink=properties.getApplicationUrl() + "/users/" + user.getChangeEmailCode()+ "/change-email";
    mailSender.send(user.getEmail(),LemonUtil.getMessage("com.naturalprogrammer.spring.changeEmailSubject"),LemonUtil.getMessage("com.naturalprogrammer.spring.changeEmailEmail",changeEmailLink));
    log.debug("Change email link mail queued.");
  }
 catch (  MessagingException e) {
    log.error(ExceptionUtils.getStackTrace(e));
  }
}

protected void mailChangeEmailLink ( U user ) { try { log . debug ( "Mailing change email link to user: " + user ) ; String changeEmailLink = properties . getApplicationUrl ( ) + "/users/" + user . getChangeEmailCode ( ) + "/change-email" ; mailSender . send ( user . getEmail ( ) , LemonUtil . getMessage ( "com.naturalprogrammer.spring.changeEmailSubject" ) , LemonUtil . getMessage ( "com.naturalprogrammer.spring.changeEmailEmail" , changeEmailLink ) ) ; log . debug ( "Change email link mail queued." ) ; } catch ( MessagingException e ) { log . error ( ExceptionUtils . getStackTrace ( e ) ) ; } }
mails the change - email verification link to the user .
