body = getTranslator().translate("reg.body",
new String[] { serverpath, tk.getRegistrationKey(), I18nManager.getInstance().getLocaleKey(ureq.getLocale()) })
+ SEPARATOR
+ getTranslator().translate("reg.wherefrom", new String [] { serverpath, today, ip });
try {
if (mailer.sendEmail(email, translate("reg.subject"), body)) isMailSent = true;
} catch (Exception e) {
// nothing to do, emailSent flag is false, errors will be reported to user
}
} else {
// a user exists, this is an error in the registration page