return this;\r
}\r
\r
+ @Override\r
+ public boolean isSendingMail() {\r
+ return false;\r
+ }\r
+\r
@Override\r
public void sendMailToAdministrators(String subject, String message) {\r
}\r
* NOTIFICATION MANAGER
*/
+ @Override
+ public boolean isSendingMail() {
+ return notificationManager.isSendingMail();
+ }
+
@Override
public void sendMailToAdministrators(String subject, String message) {
notificationManager.sendMailToAdministrators(subject, message);
public interface INotificationManager extends IManager {
+ /**
+ * Returns true if the email service is configured and ready to send notifications.
+ *
+ * @return true if the email service is operational
+ * @since 1.6.0
+ */
+ boolean isSendingMail();
+
/**
* Notify the administrators by email.
*
return this;
}
+ @Override
+ public boolean isSendingMail() {
+ return mailService.isReady();
+ }
+
/**
* Notify the administrators by email.
*