Package jetbrains.buildServer.util
Class NotificatorBasedEmailSender
- java.lang.Object
-
- jetbrains.buildServer.util.NotificatorBasedEmailSender
-
- All Implemented Interfaces:
EmailSender
public class NotificatorBasedEmailSender extends Object implements EmailSender
EmailSender
implementation that delegates to emailNotificator
. WARN: It can be used only after plugins are loaded, because email notificator is a plugin
-
-
Constructor Summary
Constructors Constructor Description NotificatorBasedEmailSender(EventDispatcher<ServerListener> events, NotificatorRegistry notificatorRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(String address, String subject, String plainText, String html)
Send email to the specified address.void
send(List<String> additionalHeaders, String encoding, String subject, String body, String bodyHtml, List<String> emails)
Send emails to the specified addresses.
-
-
-
Constructor Detail
-
NotificatorBasedEmailSender
public NotificatorBasedEmailSender(EventDispatcher<ServerListener> events, NotificatorRegistry notificatorRegistry)
-
-
Method Detail
-
send
public void send(@NotNull String address, @NotNull String subject, @NotNull String plainText, @Nullable String html)
Description copied from interface:EmailSender
Send email to the specified address. If {@param html} is specified, then sent email will have Content-Type: multipart/alternative with two parts - text/plain and text/html. Otherwise only text/plain version will be sent.- Specified by:
send
in interfaceEmailSender
-
send
public void send(@NotNull List<String> additionalHeaders, @Nullable String encoding, @NotNull String subject, @NotNull String body, @Nullable String bodyHtml, @NotNull List<String> emails)
Description copied from interface:EmailSender
Send emails to the specified addresses. If {@param html} is specified, then sent email will have Content-Type: multipart/alternative with two parts - text/plain and text/html. Otherwise only text/plain version will be sent. Default encoding is UTF-8- Specified by:
send
in interfaceEmailSender
-
-