protected void mailForgotPasswordLink(U user){
  try {
    log.debug("Mailing forgot password link to user: " + user);
    String forgotPasswordLink=properties.getApplicationUrl() + "/users/" + user.getForgotPasswordCode()+ "/reset-password";
    mailSender.send(user.getEmail(),LemonUtil.getMessage("com.naturalprogrammer.spring.forgotPasswordSubject"),LemonUtil.getMessage("com.naturalprogrammer.spring.forgotPasswordEmail",forgotPasswordLink));
    log.debug("Forgot password link mail queued.");
  }
 catch (  MessagingException e) {
    log.error(ExceptionUtils.getStackTrace(e));
  }
}

protected void mailForgotPasswordLink ( U user ) { try { log . debug ( "Mailing forgot password link to user: " + user ) ; String forgotPasswordLink = properties . getApplicationUrl ( ) + "/users/" + user . getForgotPasswordCode ( ) + "/reset-password" ; mailSender . send ( user . getEmail ( ) , LemonUtil . getMessage ( "com.naturalprogrammer.spring.forgotPasswordSubject" ) , LemonUtil . getMessage ( "com.naturalprogrammer.spring.forgotPasswordEmail" , forgotPasswordLink ) ) ; log . debug ( "Forgot password link mail queued." ) ; } catch ( MessagingException e ) { log . error ( ExceptionUtils . getStackTrace ( e ) ) ; } }
mails the forgot password link .
