Class NotificatorBasedEmailSender

  • All Implemented Interfaces:
    EmailSender

    public class NotificatorBasedEmailSender
    extends Object
    implements EmailSender
    EmailSender implementation that delegates to email Notificator. WARN: It can be used only after plugins are loaded, because email notificator is a plugin
    • 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 interface EmailSender
      • 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 interface EmailSender