Package org.duracloud.mill.notification
Class SMTPNotificationManager
- java.lang.Object
-
- org.duracloud.mill.notification.SMTPNotificationManager
-
- All Implemented Interfaces:
NotificationManager
public class SMTPNotificationManager extends Object implements NotificationManager
- Author:
- Andrew Hong Date: October 1, 2019
-
-
Constructor Summary
Constructors Constructor Description SMTPNotificationManager(String[] recipientEmailAddresses, ConfigurationManager configurationManager)Sets up and tests a connection to an SMTP server
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendEmail(String subject, String body)Send a generic notification to the mill's admin
-
-
-
Constructor Detail
-
SMTPNotificationManager
public SMTPNotificationManager(String[] recipientEmailAddresses, ConfigurationManager configurationManager)
Sets up and tests a connection to an SMTP server- Parameters:
recipientEmailAddresses-configurationManager-
-
-
Method Detail
-
sendEmail
public void sendEmail(String subject, String body)
Description copied from interface:NotificationManagerSend a generic notification to the mill's admin- Specified by:
sendEmailin interfaceNotificationManager- Parameters:
subject- message subjectbody- message body
-
-