myMailfrom = tmpFrom;
}
}
this.mailfrom = myMailfrom;
// initialize the mail footer with infos about this OLAT installation and the user who sent the mail
User user = mailFromIdentity.getUser();
Locale locale = I18nManager.getInstance().getLocaleOrDefault(user.getPreferences().getLanguage());
PackageTranslator trans = new PackageTranslator(Util.getPackageName(Emailer.class), locale);
String institution = user.getProperty(UserConstants.INSTITUTIONALNAME, null);
if (institution == null) institution = "";
footer = trans.translate("footer.with.userdata", new String[] { user.getProperty(UserConstants.FIRSTNAME, null), user.getProperty(UserConstants.LASTNAME, null), mailFromIdentity.getName(),
institution, Settings.getServerContextPathURI() });
}