Interface MessageBuilder
-
- All Known Implementing Classes:
SimpleMessageBuilder
@ProviderType public interface MessageBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull MessageBuilderattachment(@org.jetbrains.annotations.NotNull byte[] content, @NotNull String type, @NotNull String filename)@NotNull MessageBuilderattachment(@org.jetbrains.annotations.NotNull byte[] content, @NotNull String type, @NotNull String filename, @Nullable javax.mail.Header[] headers)@NotNull MessageBuilderbcc(@NotNull String address)@NotNull MessageBuilderbcc(@NotNull String address, String name)@NotNull MessageBuilderbcc(@NotNull javax.mail.internet.InternetAddress bcc)@NotNull javax.mail.internet.MimeMessagebuild()@NotNull MessageBuildercc(@NotNull String address)@NotNull MessageBuildercc(@NotNull String address, @NotNull String name)@NotNull MessageBuildercc(@NotNull javax.mail.internet.InternetAddress cc)@NotNull MessageBuilderfrom(@NotNull String address)@NotNull MessageBuilderfrom(@NotNull String address, @NotNull String name)@NotNull MessageBuilderfrom(@NotNull javax.mail.internet.InternetAddress from)@NotNull MessageBuilderheader(@NotNull String name, @Nullable String value)@NotNull MessageBuilderheaders(@NotNull javax.mail.internet.InternetHeaders headers)@NotNull MessageBuilderhtml(@NotNull String html)@NotNull MessageBuilderinline(@org.jetbrains.annotations.NotNull byte[] content, @NotNull String type, @NotNull String cid)@NotNull MessageBuilderinline(@org.jetbrains.annotations.NotNull byte[] content, @NotNull String type, @NotNull String cid, @Nullable javax.mail.Header[] headers)@NotNull MessageBuilderreplyTo(@NotNull String address)@NotNull MessageBuilderreplyTo(@NotNull String address, String name)@NotNull MessageBuilderreplyTo(@NotNull javax.mail.internet.InternetAddress replyTo)@NotNull MessageBuildersubject(@NotNull String subject)@NotNull MessageBuildertext(@NotNull String text)@NotNull MessageBuilderto(@NotNull String address)@NotNull MessageBuilderto(@NotNull String address, @NotNull String name)@NotNull MessageBuilderto(@NotNull javax.mail.internet.InternetAddress to)
-
-
-
Method Detail
-
header
@NotNull @NotNull MessageBuilder header(@NotNull @NotNull String name, @Nullable @Nullable String value)
-
headers
@NotNull @NotNull MessageBuilder headers(@NotNull @NotNull javax.mail.internet.InternetHeaders headers)
-
from
@NotNull @NotNull MessageBuilder from(@NotNull @NotNull javax.mail.internet.InternetAddress from)
-
from
@NotNull @NotNull MessageBuilder from(@NotNull @NotNull String address) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
from
@NotNull @NotNull MessageBuilder from(@NotNull @NotNull String address, @NotNull @NotNull String name) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
to
@NotNull @NotNull MessageBuilder to(@NotNull @NotNull javax.mail.internet.InternetAddress to)
-
to
@NotNull @NotNull MessageBuilder to(@NotNull @NotNull String address) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
to
@NotNull @NotNull MessageBuilder to(@NotNull @NotNull String address, @NotNull @NotNull String name) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
cc
@NotNull @NotNull MessageBuilder cc(@NotNull @NotNull javax.mail.internet.InternetAddress cc)
-
cc
@NotNull @NotNull MessageBuilder cc(@NotNull @NotNull String address) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
cc
@NotNull @NotNull MessageBuilder cc(@NotNull @NotNull String address, @NotNull @NotNull String name) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
bcc
@NotNull @NotNull MessageBuilder bcc(@NotNull @NotNull javax.mail.internet.InternetAddress bcc)
-
bcc
@NotNull @NotNull MessageBuilder bcc(@NotNull @NotNull String address) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
bcc
@NotNull @NotNull MessageBuilder bcc(@NotNull @NotNull String address, String name) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
replyTo
@NotNull @NotNull MessageBuilder replyTo(@NotNull @NotNull javax.mail.internet.InternetAddress replyTo)
-
replyTo
@NotNull @NotNull MessageBuilder replyTo(@NotNull @NotNull String address) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
replyTo
@NotNull @NotNull MessageBuilder replyTo(@NotNull @NotNull String address, String name) throws javax.mail.internet.AddressException
- Throws:
javax.mail.internet.AddressException
-
subject
@NotNull @NotNull MessageBuilder subject(@NotNull @NotNull String subject)
-
text
@NotNull @NotNull MessageBuilder text(@NotNull @NotNull String text)
-
html
@NotNull @NotNull MessageBuilder html(@NotNull @NotNull String html)
-
attachment
@NotNull @NotNull MessageBuilder attachment(@NotNull @org.jetbrains.annotations.NotNull byte[] content, @NotNull @NotNull String type, @NotNull @NotNull String filename)
-
attachment
@NotNull @NotNull MessageBuilder attachment(@NotNull @org.jetbrains.annotations.NotNull byte[] content, @NotNull @NotNull String type, @NotNull @NotNull String filename, @Nullable @Nullable javax.mail.Header[] headers)
-
inline
@NotNull @NotNull MessageBuilder inline(@NotNull @org.jetbrains.annotations.NotNull byte[] content, @NotNull @NotNull String type, @NotNull @NotNull String cid)
-
inline
@NotNull @NotNull MessageBuilder inline(@NotNull @org.jetbrains.annotations.NotNull byte[] content, @NotNull @NotNull String type, @NotNull @NotNull String cid, @Nullable @Nullable javax.mail.Header[] headers)
-
build
@NotNull @NotNull javax.mail.internet.MimeMessage build() throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
-