Interface MailService


public interface MailService
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    send(String subject, String message)
    Sends a plain text mail to the BPE wide configured recipients.
    default void
    send(String subject, String message, String to)
    Sends a plain text mail to the given address (to) if not null or the BPE wide configured recipients.
    default void
    send(String subject, String message, Collection<String> to)
    Sends a plain text mail to the given addresses (to) if not null and not empty or the BPE wide configured recipients.
    default void
    send(String subject, javax.mail.internet.MimeBodyPart body)
    Sends the given MimeBodyPart as content of a mail to the BPE wide configured recipients.
    default void
    send(String subject, javax.mail.internet.MimeBodyPart body, String to)
    Sends the given MimeBodyPart as content of a mail to the given address (to) if not null or the BPE wide configured recipients.
    default void
    send(String subject, javax.mail.internet.MimeBodyPart body, Collection<String> to)
    Sends the given MimeBodyPart as content of a mail to the given addresses (to) if not null and not empty or the BPE wide configured recipients.
    void
    send(String subject, javax.mail.internet.MimeBodyPart body, Consumer<javax.mail.internet.MimeMessage> messageModifier)
    Sends the given MimeBodyPart as content of a mail to the BPE wide configured recipients, the messageModifier can be used to modify elements of the generated MimeMessage before it is send to the SMTP server.
  • Method Details

    • send

      default void send(String subject, String message)
      Sends a plain text mail to the BPE wide configured recipients.
      Parameters:
      subject - not null
      message - not null
    • send

      default void send(String subject, String message, String to)
      Sends a plain text mail to the given address (to) if not null or the BPE wide configured recipients.
      Parameters:
      subject - not null
      message - not null
      to - BPE wide configured recipients if parameter is null
    • send

      default void send(String subject, String message, Collection<String> to)
      Sends a plain text mail to the given addresses (to) if not null and not empty or the BPE wide configured recipients.
      Parameters:
      subject - not null
      message - not null
      to - BPE wide configured recipients if parameter is null or empty
    • send

      default void send(String subject, javax.mail.internet.MimeBodyPart body)
      Sends the given MimeBodyPart as content of a mail to the BPE wide configured recipients.
      Parameters:
      subject - not null
      body - not null
    • send

      default void send(String subject, javax.mail.internet.MimeBodyPart body, String to)
      Sends the given MimeBodyPart as content of a mail to the given address (to) if not null or the BPE wide configured recipients.
      Parameters:
      subject - not null
      body - not null
      to - BPE wide configured recipients if parameter is null
    • send

      default void send(String subject, javax.mail.internet.MimeBodyPart body, Collection<String> to)
      Sends the given MimeBodyPart as content of a mail to the given addresses (to) if not null and not empty or the BPE wide configured recipients.
      Parameters:
      subject - not null
      body - not null
      to - BPE wide configured recipients if parameter is null or empty
    • send

      void send(String subject, javax.mail.internet.MimeBodyPart body, Consumer<javax.mail.internet.MimeMessage> messageModifier)
      Sends the given MimeBodyPart as content of a mail to the BPE wide configured recipients, the messageModifier can be used to modify elements of the generated MimeMessage before it is send to the SMTP server.
      Parameters:
      subject - not null
      body - not null
      messageModifier - may be null