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