Package de.espirit.firstspirit.access
Class MailHeader
java.lang.Object
de.espirit.firstspirit.access.MailHeader
- All Implemented Interfaces:
Serializable
A
Serializable
object of the mail header- Since:
- 4.1.10
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal @NotNull String
Deprecated, for removal: This API element is subject to removal in a future version.@Nullable String
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.replyTo(String)
andgetReplyTo()
instead@Nullable String
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.sender(String)
andgetSender()
instead -
Constructor Summary
ConstructorDescriptionMailHeader
(@NotNull String recipients) Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder
instead -
Method Summary
Modifier and TypeMethodDescription@NotNull String
A semicolon-separated list of blind carbon copy (BCC) recipients.static @NotNull MailHeader.Builder
Create a new builder for aMailHeader
.@NotNull String
A semicolon-separated list of carbon copy (CC) recipients.@NotNull String
A semicolon-separated list of recipients.@Nullable String
A semicolon-separated list of reply addresses.@Nullable String
The technical sender of the e-mail.
-
Field Details
-
recipients
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.recipient(String)
andgetRecipients()
insteadA semicolon-separated list of recipients.- Since:
- 4.1.10
-
sender
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.sender(String)
andgetSender()
insteadThe sender of the mail.- Since:
- 4.1.10
-
replyTo
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.replyTo(String)
andgetReplyTo()
insteadA semicolon-separated list of reply-recipients.- Since:
- 4.1.10
-
-
Constructor Details
-
MailHeader
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder
insteadThe constructor for the mail header. You have to supply at least one recipient or an empty string. If you want to have multiple recipients, provide them in a semicolon separated list.- Parameters:
recipients
- A semicolon-separated list of recipients.- Throws:
IllegalArgumentException
- if the domain of a recipient does not conform to RFC 3490- Since:
- 4.1.10
-
-
Method Details
-
getRecipients
A semicolon-separated list of recipients.- Returns:
- the recipients. May be empty if no valid recipients have been specified, but never
null
. - Since:
- 5.2.601
-
getCCRecipients
A semicolon-separated list of carbon copy (CC) recipients.- Returns:
- the carbon copy (CC) recipients. May be empty if no valid recipients have been specified, but never
null
. - Since:
- 5.2.220702
-
getBCCRecipients
A semicolon-separated list of blind carbon copy (BCC) recipients.- Returns:
- the blind carbon copy (BCC) recipients. May be empty if no valid recipients have been specified, but never
null
. - Since:
- 5.2.220702
-
getSender
The technical sender of the e-mail.- Returns:
- the sender, may be
null
if unset. - Since:
- 5.2.601
-
getReplyTo
A semicolon-separated list of reply addresses.- Returns:
- the reply addresses. May be
null
if unset or empty if no valid addresses have been specified. - Since:
- 5.2.601
-
getBuilder
Create a new builder for aMailHeader
.- Returns:
- the new builder
- Since:
- 5.2.601
-
MailHeader.Builder.recipient(String)
andgetRecipients()
instead