Package dev.dsf.bpe.v1.service
Interface MailService
public interface MailService
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Sends a plain text mail to the BPE wide configured recipients.default void
Sends a plain text mail to the given address (to) if notnull
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 notnull
and not empty or the BPE wide configured recipients.default void
Sends the givenMimeBodyPart
as content of a mail to the BPE wide configured recipients.default void
Sends the givenMimeBodyPart
as content of a mail to the given address (to) if notnull
or the BPE wide configured recipients.default void
send
(String subject, javax.mail.internet.MimeBodyPart body, Collection<String> to) Sends the givenMimeBodyPart
as content of a mail to the given addresses (to) if notnull
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 givenMimeBodyPart
as content of a mail to the BPE wide configured recipients, the messageModifier can be used to modify elements of the generatedMimeMessage
before it is send to the SMTP server.
-
Method Details
-
send
Sends a plain text mail to the BPE wide configured recipients.- Parameters:
subject
- notnull
message
- notnull
-
send
Sends a plain text mail to the given address (to) if notnull
or the BPE wide configured recipients.- Parameters:
subject
- notnull
message
- notnull
to
- BPE wide configured recipients if parameter isnull
-
send
Sends a plain text mail to the given addresses (to) if notnull
and not empty or the BPE wide configured recipients.- Parameters:
subject
- notnull
message
- notnull
to
- BPE wide configured recipients if parameter isnull
or empty
-
send
Sends the givenMimeBodyPart
as content of a mail to the BPE wide configured recipients.- Parameters:
subject
- notnull
body
- notnull
-
send
Sends the givenMimeBodyPart
as content of a mail to the given address (to) if notnull
or the BPE wide configured recipients.- Parameters:
subject
- notnull
body
- notnull
to
- BPE wide configured recipients if parameter isnull
-
send
Sends the givenMimeBodyPart
as content of a mail to the given addresses (to) if notnull
and not empty or the BPE wide configured recipients.- Parameters:
subject
- notnull
body
- notnull
to
- BPE wide configured recipients if parameter isnull
or empty
-
send
void send(String subject, javax.mail.internet.MimeBodyPart body, Consumer<javax.mail.internet.MimeMessage> messageModifier) Sends the givenMimeBodyPart
as content of a mail to the BPE wide configured recipients, the messageModifier can be used to modify elements of the generatedMimeMessage
before it is send to the SMTP server.- Parameters:
subject
- notnull
body
- notnull
messageModifier
- may benull
-