return body;
}
protected void sendSubscriptionFormThread(String mailAddress, String token) throws ApsSystemException {
try {
NewsletterConfig config = this.getConfig();
String senderCode = config.getSenderCode();
String subject = config.getSubscriptionSubject();
if (subject!=null) {
Map<String, String> bodyParams = new HashMap<String, String>();
String link = this.createLink(mailAddress, token);
bodyParams.put("subscribeLink", link);
String textBody = this.parseText(config.getSubscriptionTextBody(), bodyParams);
String[] recipientsTo = new String[] { mailAddress };
if (config.isAlsoHtml()) {
String htmlBody = this.parseText(config.getSubscriptionHtmlBody(), bodyParams);
this.getMailManager().sendMixedMail(textBody, htmlBody, subject, null, recipientsTo, null, null, senderCode);
} else {
this.getMailManager().sendMail(textBody, subject, recipientsTo, null, null, senderCode, IMailManager.CONTENTTYPE_TEXT_PLAIN);
}
} else {