Package jetbrains.buildServer.util
Interface EmailSender
-
- All Known Implementing Classes:
NotificatorBasedEmailSender
public interface EmailSender
Simple interface that can be used to send emails.- Since:
- 9.1.2
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
send
void send(@NotNull String address, @NotNull String subject, @NotNull String plainText, @Nullable String html)
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.- Throws:
EmailException
- if something goes wrong.
-
send
void send(@NotNull List<String> additionalHeaders, @Nullable String encoding, @NotNull String subject, @NotNull String body, @Nullable String bodyHtml, @NotNull List<String> emails)
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- Throws:
EmailException
- if something goes wrong.
-
-