## Uses of Interface
org.apache.sling.commons.messaging.mail.MessageBuilder

Packages that use MessageBuilder
org.apache.sling.commons.messaging.mail: Provides the Apache Sling Commons Messaging Mail API.
org.apache.sling.commons.messaging.mail.internal: Provides a simple implementation of the Apache Sling Commons Messaging Mail API using SMTPS (Simple Mail Transfer Protocol Secure).

### Uses of MessageBuilder in org.apache.sling.commons.messaging.mail

Methods in org.apache.sling.commons.messaging.mail that return MessageBuilder
`@NotNull MessageBuilder` MessageBuilder.`attachment​(byte @NotNull [] content, @NotNull String type, @NotNull String filename)` Attaches the given content to the message.
`@NotNull MessageBuilder` MessageBuilder.`attachment​(byte @NotNull [] content, @NotNull String type, @NotNull String filename, @Nullable Collection<jakarta.mail.Header> headers)` Attaches the given content with headers to the message.
`@NotNull MessageBuilder` MessageBuilder.`bcc​(@NotNull jakarta.mail.internet.InternetAddress bcc)` Adds the given address to the list of blind carbon copy (`bcc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`bcc​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)` Adds the given addresses to the list of blind carbon copy (`bcc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`bcc​(@NotNull String address)` Creates a new `InternetAddress` from given address and adds it to the list of blind carbon copy (`bcc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`bcc​(@NotNull String[] addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of blind carbon copy (`bcc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`bcc​(@NotNull String address, String name)` Creates a new `InternetAddress` from given address and name and adds it to the list of blind carbon copy (`bcc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`bcc​(@NotNull Collection<String> addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of blind carbon copy (`bcc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`cc​(@NotNull jakarta.mail.internet.InternetAddress cc)` Adds the given address to the list of carbon copy (`cc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`cc​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)` Adds the given addresses to the list of carbon copy (`cc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`cc​(@NotNull String address)` Creates a new `InternetAddress` from given address and adds it to the list of carbon copy (`cc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`cc​(@NotNull String[] addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of carbon copy (`cc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`cc​(@NotNull String address, @NotNull String name)` Creates a new `InternetAddress` from given address and name and adds it to the list of carbon copy (`cc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`cc​(@NotNull Collection<String> addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of carbon copy (`cc`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`from​(@NotNull jakarta.mail.internet.InternetAddress from)` Sets the given address for the RFC 822 `From` header field.
`@NotNull MessageBuilder` MessageBuilder.`from​(@NotNull String address)` Creates a new `InternetAddress` from given address and sets it for the RFC 822 `From` header field.
`@NotNull MessageBuilder` MessageBuilder.`from​(@NotNull String address, @NotNull String name)` Creates a new `InternetAddress` from given address and name and sets it for the RFC 822 `From` header field.
`@NotNull MessageBuilder` MailService.`getMessageBuilder()` Provides the message builder for this service.
`@NotNull MessageBuilder` MessageBuilder.`header​(@NotNull String name, @Nullable String value)` Creates a new header from given name and value and adds it to the list of headers.
`@NotNull MessageBuilder` MessageBuilder.`headers​(@NotNull Collection<jakarta.mail.Header> headers)` Adds the given headers to the list of headers.
`@NotNull MessageBuilder` MessageBuilder.`html​(@NotNull String html)` Sets the HTML content.
`@NotNull MessageBuilder` MessageBuilder.`inline​(byte @NotNull [] content, @NotNull String type, @NotNull String cid)` Inlines the given content into the message.
`@NotNull MessageBuilder` MessageBuilder.`inline​(byte @NotNull [] content, @NotNull String type, @NotNull String cid, @Nullable Collection<jakarta.mail.Header> headers)` Inlines the given content with headers into the message.
`@NotNull MessageBuilder` MessageBuilder.`replyTo​(@NotNull jakarta.mail.internet.InternetAddress replyTo)` Adds the given address to the list of addresses for the RFC 822 `Reply-To` header field.
`@NotNull MessageBuilder` MessageBuilder.`replyTo​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)` Adds the given addresses to the list of addresses for the RFC 822 `Reply-To` header field.
`@NotNull MessageBuilder` MessageBuilder.`replyTo​(@NotNull String address)` Creates a new `InternetAddress` from given address and adds it to the list of addresses for the RFC 822 `Reply-To` header field.
`@NotNull MessageBuilder` MessageBuilder.`replyTo​(@NotNull String[] addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of addresses for the RFC 822 `Reply-To` header field.
`@NotNull MessageBuilder` MessageBuilder.`replyTo​(@NotNull String address, String name)` Creates a new `InternetAddress` from given address and name and adds it to the list of addresses for the RFC 822 `Reply-To` header field.
`@NotNull MessageBuilder` MessageBuilder.`replyTo​(@NotNull Collection<String> addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of addresses for the RFC 822 `Reply-To` header field.
`@NotNull MessageBuilder` MessageBuilder.`subject​(@NotNull String subject)` Sets the given subject into the `Subject` header field.
`@NotNull MessageBuilder` MessageBuilder.`text​(@NotNull String text)` Sets the plain text content.
`@NotNull MessageBuilder` MessageBuilder.`to​(@NotNull jakarta.mail.internet.InternetAddress to)` Adds the given address to the list of primary (`to`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`to​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)` Adds the given addresses to the list of primary (`to`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`to​(@NotNull String address)` Creates a new `InternetAddress` from given address and adds it to the list of primary (`to`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`to​(@NotNull String[] addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of primary (`to`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`to​(@NotNull String address, @NotNull String name)` Creates a new `InternetAddress` from given address and name and adds it to the list of primary (`to`) recipients.
`@NotNull MessageBuilder` MessageBuilder.`to​(@NotNull Collection<String> addresses)` Creates new `InternetAddress`es from given addresses and adds them to the list of primary (`to`) recipients.

### Uses of MessageBuilder in org.apache.sling.commons.messaging.mail.internal

Classes in org.apache.sling.commons.messaging.mail.internal that implement MessageBuilder
`class` `SimpleMessageBuilder` Builder for MIME messages. The message builder is using the `Session` form `SimpleMailService` and the standard charset `UTF-8`.

Methods in org.apache.sling.commons.messaging.mail.internal that return MessageBuilder
`@NotNull MessageBuilder` SimpleMessageBuilder.`attachment​(byte @NotNull [] content, @NotNull String type, @NotNull String filename)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`attachment​(byte @NotNull [] content, @NotNull String type, @NotNull String filename, @Nullable Collection<jakarta.mail.Header> headers)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`bcc​(@NotNull jakarta.mail.internet.InternetAddress bcc)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`bcc​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`bcc​(@NotNull String address)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`bcc​(@NotNull String[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`bcc​(@NotNull String address, String name)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`bcc​(@NotNull Collection<String> addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`cc​(@NotNull jakarta.mail.internet.InternetAddress cc)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`cc​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`cc​(@NotNull String address)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`cc​(@NotNull String[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`cc​(@NotNull String address, @NotNull String name)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`cc​(@NotNull Collection<String> addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`from​(@NotNull jakarta.mail.internet.InternetAddress from)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`from​(@NotNull String address)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`from​(@NotNull String address, @NotNull String name)`
`@NotNull MessageBuilder` SimpleMailService.`getMessageBuilder()`
`@NotNull MessageBuilder` SimpleMessageBuilder.`header​(@NotNull String name, @Nullable String value)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`headers​(@NotNull Collection<jakarta.mail.Header> headers)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`html​(@NotNull String html)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`inline​(byte @NotNull [] content, @NotNull String type, @NotNull String cid)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`inline​(byte @NotNull [] content, @NotNull String type, @NotNull String cid, @Nullable Collection<jakarta.mail.Header> headers)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`replyTo​(@NotNull jakarta.mail.internet.InternetAddress replyTo)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`replyTo​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`replyTo​(@NotNull String address)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`replyTo​(@NotNull String[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`replyTo​(@NotNull String address, @NotNull String name)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`replyTo​(@NotNull Collection<String> addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`subject​(@NotNull String subject)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`text​(@NotNull String text)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`to​(@NotNull jakarta.mail.internet.InternetAddress to)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`to​(@NotNull jakarta.mail.internet.InternetAddress[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`to​(@NotNull String address)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`to​(@NotNull String[] addresses)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`to​(@NotNull String address, @NotNull String name)`
`@NotNull MessageBuilder` SimpleMessageBuilder.`to​(@NotNull Collection<String> addresses)`