plainTextTemplate.setId("plainTextTemplate");
AttachmentContent textAttachment = new AttachmentContent("testfile.txt");
textAttachment.setId("textAttachment");
HTMLTemplateContent htmlTemplate = new HTMLTemplateContent("mail/complexhtml.vm");
htmlTemplate.setId("htmlTemplate");
plainTextTemplate.setTemplateService(templateService);
plainTextTemplate.setPullService(pullService);
htmlTemplate.setTemplateService(templateService);
htmlTemplate.setPullService(pullService);
htmlTemplate.setResourceLoader(factory);
htmlTemplate.addInlineResource("image", "/");
textAttachment.setResourceLoader(factory);
// ����builder
builder.setContent(attachable);