if (tk == null) tk = rm.createTemporaryKeyByEmail(emailAdress, ip, rm.PW_CHANGE);
myContent.contextPut("pwKey", tk.getRegistrationKey());
body = userTrans.translate("pwchange.intro", new String[] { identity.getName() })
+ userTrans.translate("pwchange.body", new String[] { serverpath, tk.getRegistrationKey(),
I18nManager.getInstance().getLocaleKey(ureq.getLocale()) }) + SEPARATOR
+ userTrans.translate("reg.wherefrom", new String[] { serverpath, today, ip });
subject = userTrans.translate("pwchange.subject");
MailTemplate mailTempl = new MailTemplate(subject, body, null) {
@Override
public void putVariablesInMailContext(VelocityContext context, Identity recipient) {
// nothing to do