protected void sendVerificationMail(final U user){
  try {
    log.debug("Sending verification mail to: " + user);
    String verifyLink=properties.getApplicationUrl() + "/users/" + user.getVerificationCode()+ "/verify";
    mailSender.send(user.getEmail(),LemonUtil.getMessage("com.naturalprogrammer.spring.verifySubject"),LemonUtil.getMessage("com.naturalprogrammer.spring.verifyEmail",verifyLink));
    log.debug("Verification mail to " + user.getEmail() + " queued.");
  }
 catch (  MessagingException e) {
    log.error(ExceptionUtils.getStackTrace(e));
  }
}

protected void sendVerificationMail ( final U user ) { try { log . debug ( "Sending verification mail to: " + user ) ; String verifyLink = properties . getApplicationUrl ( ) + "/users/" + user . getVerificationCode ( ) + "/verify" ; mailSender . send ( user . getEmail ( ) , LemonUtil . getMessage ( "com.naturalprogrammer.spring.verifySubject" ) , LemonUtil . getMessage ( "com.naturalprogrammer.spring.verifyEmail" , verifyLink ) ) ; log . debug ( "Verification mail to " + user . getEmail ( ) + " queued." ) ; } catch ( MessagingException e ) { log . error ( ExceptionUtils . getStackTrace ( e ) ) ; } }
sends verification mail to a unverified user .
