htmlMail.setHtmlMsg(replaceMacros(htmlMsg.toString(), recipient)); Iterator<CmsResource> attachments = m_attachments.iterator(); while (attachments.hasNext()) {
template.setAttribute("users", lockedUsers); template.toString(); mail.setHtmlMsg(template.toString()); try { mail.send();
htmlMail.setHtmlMsg(replaceMacros(htmlMsg.toString(), recipient)); Iterator attachments = m_attachments.iterator(); while (attachments.hasNext()) {
theMail.setSubject(getFormConfiguration().getMailSubjectPrefix() + getFormConfiguration().getMailSubject()); theMail.setHtmlMsg(createMailTextFromFields(true, false)); theMail.setTextMsg(createMailTextFromFields(false, false));
+ getPageTitle()); theMail.setCharset(getRequestContext().getEncoding()); theMail.setHtmlMsg(getContent("recommend_mail.html", "html", getRequestContext().getLocale())); theMail.setTextMsg(getContent("recommend_mail.html", "text",
theMail.setHtmlMsg(getContent("letter_mail.html", "html", getRequestContext().getLocale())); theMail.setTextMsg(getContent("letter_mail.html", "text", getRequestContext().getLocale()));
theMail.setSubject(getFormConfiguration().getMailSubjectPrefix() + getFormConfiguration().getConfirmationMailSubject()); theMail.setHtmlMsg(createMailTextFromFields(true, true)); theMail.setTextMsg(createMailTextFromFields(false, true));