public class FormattedEmailAlertSender extends Object implements AlertSender
| Modifier and Type | Field and Description |
|---|---|
static String |
bodyTemplate |
| Constructor and Description |
|---|
FormattedEmailAlertSender(EmailConfiguration configuration,
NotificationService notificationService,
NodeId nodeId,
com.floreysoft.jmte.Engine templateEngine) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Configuration configuration) |
void |
sendEmails(Stream stream,
EmailRecipients recipients,
AlertCondition.CheckResult checkResult) |
void |
sendEmails(Stream stream,
EmailRecipients recipients,
AlertCondition.CheckResult checkResult,
List<Message> backlog) |
public static final String bodyTemplate
@Inject public FormattedEmailAlertSender(EmailConfiguration configuration, NotificationService notificationService, NodeId nodeId, com.floreysoft.jmte.Engine templateEngine)
public void initialize(Configuration configuration)
initialize in interface AlertSenderpublic void sendEmails(Stream stream, EmailRecipients recipients, AlertCondition.CheckResult checkResult) throws TransportConfigurationException, org.apache.commons.mail.EmailException
sendEmails in interface AlertSenderTransportConfigurationExceptionorg.apache.commons.mail.EmailExceptionpublic void sendEmails(Stream stream, EmailRecipients recipients, AlertCondition.CheckResult checkResult, List<Message> backlog) throws TransportConfigurationException, org.apache.commons.mail.EmailException
sendEmails in interface AlertSenderTransportConfigurationExceptionorg.apache.commons.mail.EmailExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.