Package io.micronaut.email
Class Email
java.lang.Object
io.micronaut.email.Email
- All Implemented Interfaces:
Recipients
Representation of a transactional email.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Email.Builder
builder()
@Nullable List<Attachment>
Returns this email's attachments.@Nullable Collection<Contact>
getBcc()
Returns this email's "BCC" addresses.@Nullable Body
getBody()
Returns this email's body.@Nullable Collection<Contact>
getCc()
Returns this email's "CC" addresses.@NonNull Contact
getFrom()
Returns this email "From" address.@Nullable Contact
Returns this email's "Reply-To" address.@Nullable Collection<@Valid Contact>
Returns this email's "Reply-To" addresses.@NonNull String
Returns this email's subject.@Nullable Collection<Contact>
getTo()
Returns this email's "To" addresses.
-
Method Details
-
getFrom
Returns this email "From" address.- Returns:
- this email "From" address.
-
getReplyTo
Returns this email's "Reply-To" address.Note: If this email has more than one, this method will return the last one added.
- Returns:
- this email's "Reply-To" address.
-
getReplyToCollection
Returns this email's "Reply-To" addresses.- Returns:
- this email's "Reply-To" addresses.
-
getTo
Returns this email's "To" addresses.- Specified by:
getTo
in interfaceRecipients
- Returns:
- this email's "To" addresses.
-
getCc
Returns this email's "CC" addresses.- Specified by:
getCc
in interfaceRecipients
- Returns:
- this email's "CC" addresses.
-
getBcc
Returns this email's "BCC" addresses.- Specified by:
getBcc
in interfaceRecipients
- Returns:
- this email's "BCC" addresses.
-
getSubject
Returns this email's subject.- Returns:
- this email's subject.
-
getAttachments
Returns this email's attachments.- Returns:
- this email's attachments.
-
getBody
Returns this email's body.- Returns:
- this email's body.
-
builder
- Returns:
- Builder
-