Package dev.dsf.bpe.v1.service
Interface MailService
public interface MailService
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidSends a plain text mail to the BPE wide configured recipients.default voidSends a plain text mail to the given address (to) if notnullor the BPE wide configured recipients.default voidsend(String subject, String message, Collection<String> to) Sends a plain text mail to the given addresses (to) if notnulland not empty or the BPE wide configured recipients.default voidSends the givenMimeBodyPartas content of a mail to the BPE wide configured recipients.default voidSends the givenMimeBodyPartas content of a mail to the given address (to) if notnullor the BPE wide configured recipients.default voidsend(String subject, javax.mail.internet.MimeBodyPart body, Collection<String> to) Sends the givenMimeBodyPartas content of a mail to the given addresses (to) if notnulland not empty or the BPE wide configured recipients.voidsend(String subject, javax.mail.internet.MimeBodyPart body, Consumer<javax.mail.internet.MimeMessage> messageModifier) Sends the givenMimeBodyPartas content of a mail to the BPE wide configured recipients, the messageModifier can be used to modify elements of the generatedMimeMessagebefore it is send to the SMTP server.
-
Method Details
-
send
Sends a plain text mail to the BPE wide configured recipients.- Parameters:
subject- notnullmessage- notnull
-
send
Sends a plain text mail to the given address (to) if notnullor the BPE wide configured recipients.- Parameters:
subject- notnullmessage- notnullto- BPE wide configured recipients if parameter isnull
-
send
Sends a plain text mail to the given addresses (to) if notnulland not empty or the BPE wide configured recipients.- Parameters:
subject- notnullmessage- notnullto- BPE wide configured recipients if parameter isnullor empty
-
send
Sends the givenMimeBodyPartas content of a mail to the BPE wide configured recipients.- Parameters:
subject- notnullbody- notnull
-
send
Sends the givenMimeBodyPartas content of a mail to the given address (to) if notnullor the BPE wide configured recipients.- Parameters:
subject- notnullbody- notnullto- BPE wide configured recipients if parameter isnull
-
send
Sends the givenMimeBodyPartas content of a mail to the given addresses (to) if notnulland not empty or the BPE wide configured recipients.- Parameters:
subject- notnullbody- notnullto- BPE wide configured recipients if parameter isnullor empty
-
send
void send(String subject, javax.mail.internet.MimeBodyPart body, Consumer<javax.mail.internet.MimeMessage> messageModifier) Sends the givenMimeBodyPartas content of a mail to the BPE wide configured recipients, the messageModifier can be used to modify elements of the generatedMimeMessagebefore it is send to the SMTP server.- Parameters:
subject- notnullbody- notnullmessageModifier- may benull
-