public void sendMail(final String name, String[] addressees,
String subject, final Map<String, Serializable> parameters,
IsoMailAttachment[] attachments) {
templateProcessor.getMimeType(name);
try {
ioManager.openTempFileForWrite(new IsoWriterHandler() {
public void handle(Writer writer) throws IOException {
templateProcessor.process(name, writer, parameters);
}
});
} catch (IOException exception) {