public static class MailMessage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MailMessage.Builder |
attachment(String fileName,
DataSource source) |
MailMessage.Builder |
attachment(String fileName,
File file) |
MailMessage.Builder |
attachment(String fileName,
String pathToFile) |
MailMessage.Builder |
bcc(Iterable<String> recipients) |
MailMessage.Builder |
bcc(String... recipients) |
MailMessage |
build() |
MailMessage.Builder |
cc(Iterable<String> recipients) |
MailMessage.Builder |
cc(String... recipients) |
MailMessage.Builder |
from(String value) |
MailMessage.Builder |
header(String key,
String value) |
MailMessage.Builder |
subject(String subject) |
MailMessage.Builder |
text(String text) |
MailMessage.Builder |
to(Iterable<String> recipients) |
MailMessage.Builder |
to(String... recipients) |
@Nonnull public MailMessage.Builder from(String value)
@Nonnull public MailMessage.Builder to(String... recipients)
@Nonnull public MailMessage.Builder to(Iterable<String> recipients)
@Nonnull public MailMessage.Builder cc(String... recipients)
@Nonnull public MailMessage.Builder cc(Iterable<String> recipients)
@Nonnull public MailMessage.Builder bcc(String... recipients)
@Nonnull public MailMessage.Builder bcc(Iterable<String> recipients)
@Nonnull public MailMessage.Builder subject(String subject)
@Nonnull public MailMessage.Builder text(String text)
@Nonnull public MailMessage.Builder attachment(String fileName, DataSource source)
@Nonnull public MailMessage.Builder attachment(String fileName, File file)
@Nonnull public MailMessage.Builder attachment(String fileName, String pathToFile)
@Nonnull public MailMessage.Builder header(String key, String value)
@Nonnull public MailMessage build()
Copyright © 2021 Atlassian. All rights reserved.