Page content
<%@ page isELIgnored="false" import="java.util.*, de.cmsbs.connector.*" buffer="2000kb" %> <% if (!wum.ping()) { %> <% } if (wum.hasParam("doRemind")) { wum.makeMandatory("email", "required"); try { if (!wum.errors().hasSome()) { String bUrl = "/en/extra-pages/newsletter/profil/"; String lUrl = bUrl.replace("boot/", ""); // replace fairIdentifier in URl Entry e = wum.um().getEntryByEmail(wum.getParam("email")); if (e == null) { wum.errors().addHtml("email", "Sorry, this address is not known

", ":(", true); } else { e.set("password", "{reset}"); e.getNotification() .setMessageId("newuser") .setEmailSubject("Your newsletter registration") .setEmailBody("{switch:salut :male :Dear Mr {lastname}, :female :Dear Ms {lastname}, :family :Dear Family {lastname}, :company:Dear Sir or Madam, :default:Dear Sir or Madam, }\n\n" + "Your login data for the newsletter is:\n\n Email : {email}\n Password : {password}\n\nThe newsletter settings can be changed using following URL: \n" + "Log-In Link: " + "https://www.boot-berlin.de" + lUrl + "\n\n" + "" ); e.commit(); wum.success(); } } } catch (Exception e) { wum.errors().add(e); } } if (wum.hasSuccess()) { %>

Thank you, the password has been mailed to you. You might want to login now.

<% } else { if (wum.errors().hasSome()) { for (wum.errors().iteratePageErrors(); wum.errors().doNext(); ) { %>

${wum.errors.currentErrorHtml}

<% } %>

${wum.errors.forParam['email']}

<% } %>
<% } %>