Class DefaultEmailService
- java.lang.Object
-
- com.atlassian.confluence.user.notifications.DefaultEmailService
-
- All Implemented Interfaces:
EmailService
public class DefaultEmailService extends Object implements EmailService
Sends emails to email addresses, rather than users.- Since:
- 4.2.4
-
-
Constructor Summary
Constructors Constructor Description DefaultEmailService(com.atlassian.core.task.MultiQueueTaskManager taskManager, I18NBeanFactory i18NBeanFactory, DataSourceFactory dataSourceFactory, VelocityHelperService velocityHelperService, MailServerExistsCriteria mailServerExistsCriteria)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PreRenderedMailNotificationQueueItem
renderEmail(PreRenderedMailNotificationQueueItem.Builder builder)
NotificationSendResult
sendToEmail(NotificationData notificationData, String emailAddress)
NotificationSendResult
sendToEmails(NotificationData notificationData, List<String> recipients)
-
-
-
Constructor Detail
-
DefaultEmailService
public DefaultEmailService(com.atlassian.core.task.MultiQueueTaskManager taskManager, I18NBeanFactory i18NBeanFactory, DataSourceFactory dataSourceFactory, VelocityHelperService velocityHelperService, MailServerExistsCriteria mailServerExistsCriteria)
-
-
Method Detail
-
sendToEmails
public NotificationSendResult sendToEmails(NotificationData notificationData, List<String> recipients)
- Specified by:
sendToEmails
in interfaceEmailService
-
renderEmail
protected PreRenderedMailNotificationQueueItem renderEmail(PreRenderedMailNotificationQueueItem.Builder builder)
-
sendToEmail
public NotificationSendResult sendToEmail(NotificationData notificationData, String emailAddress)
- Specified by:
sendToEmail
in interfaceEmailService
-
-