Package io.micronaut.email
Class Email.Builder
java.lang.Object
io.micronaut.email.Email.Builder
- Enclosing class:
Email builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattachment
(@NonNull Attachment attachment) attachment
(@NonNull Consumer<Attachment.Builder> attachment) @NonNull Email.Builder
@NonNull Email.Builder
@NonNull Email.Builder
@NonNull Email.Builder
@NonNull Email
build()
@NonNull Optional<List<Attachment>>
getBcc()
getBody()
getCc()
getFrom()
getTo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
- Parameters:
from
- contact sending the email- Returns:
- Email Builder
-
from
- Parameters:
from
- contact sending the email- Returns:
- Email Builder
-
replyTo
- Parameters:
replyTo
- Reply to contact- Returns:
- Email Builder
-
replyTo
- Parameters:
replyTo
- Reply to contact- Returns:
- Email Builder
-
to
- Parameters:
to
- Recipients to- Returns:
- Email Builder
-
to
- Parameters:
to
- Recipients to- Returns:
- Email Builder
-
cc
- Parameters:
cc
- carbon copy recipient.- Returns:
- Email Builder
-
cc
- Parameters:
cc
- carbon copy recipient.- Returns:
- Email Builder
-
bcc
- Parameters:
bcc
- blind carbon copy recipient.- Returns:
- Email Builder
-
bcc
- Parameters:
bcc
- blind carbon copy recipient.- Returns:
- Email Builder
-
subject
- Parameters:
subject
- Email subject- Returns:
- Email Builder
-
attachment
- Parameters:
attachment
- Email attachment- Returns:
- Email Builder
-
attachment
- Parameters:
attachment
- attachment builder consumer- Returns:
- Email Builder
-
body
- Parameters:
body
- Email's body- Returns:
- The Email Builder
-
body
- Parameters:
body
- Email bodybodyType
- Email body type- Returns:
- The Email Builder
-
body
- Parameters:
text
- Email body text- Returns:
- The Email Builder
-
body
@NonNull public @NonNull Email.Builder body(@NonNull @NonNull String html, @NonNull @NonNull String text) - Parameters:
html
- Email body HTMLtext
- Email body Text- Returns:
- The Email Builder
-
build
- Returns:
- An email
-
getFrom
- Returns:
- Email sender
-
getBody
- Returns:
- Email Body
-
getTo
- Returns:
- Email recipients.
-
getSubject
- Returns:
- Email's subject
-
getReplyTo
- Returns:
- Email Reply-to
-
getReplyToList
- Returns:
- Email Reply-to
-
getCc
- Returns:
- Email carbon copy recipients.
-
getBcc
- Returns:
- Email blind carbon copy recipients.
-
getAttachments
- Returns:
- Email attachments
-