8586878889909192
String subject = theme.getMessages().getProperty(subjectKey); String body = freeMarker.processTemplate(attributes, template, theme); send(subject, body); } catch (Exception e) { throw new EmailException("Failed to template email", e); } }
140141142143144145146147
transport.connect(); } transport.sendMessage(msg, new InternetAddress[]{new InternetAddress(address)}); } catch (Exception e) { log.warn("Failed to send email", e); throw new EmailException(e); } }