Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
Mail notification for a user
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Stancapiano authored and nscavell committed Apr 8, 2013
1 parent 4145be5 commit 3b2f86e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ public void sendMailAfterSuccessfulRegistration(User user) {
try {
String subject = replaceTokens(mailSubject, user);
String message = replaceTokens(mailMessage, user);
String to = replaceTokens(mailTo, user);

log.debug("Sending mail about the creating of user " + user.getUserName());
mailService.sendMessage(mailFrom, mailTo, subject, message);
mailService.sendMessage(mailFrom, to, subject, message);
} catch (Exception e) {
log.error("Error when sending mail to admin after registration of user " + user.getUserName(), e);
}
Expand Down

0 comments on commit 3b2f86e

Please sign in to comment.