Class Email

java.lang.Object
io.micronaut.email.Email
All Implemented Interfaces:
Recipients

@Introspected public final class Email extends Object implements Recipients
Representation of a transactional email.
Since:
1.0.0
Author:
Sergio del Amo
  • Method Details

    • getFrom

      @NonNull public @NonNull Contact getFrom()
    • getReplyTo

      @Nullable public @Nullable Contact getReplyTo()
    • getTo

      @Nullable public @Nullable Collection<Contact> getTo()
      Specified by:
      getTo in interface Recipients
      Returns:
      Email recipients.
    • getCc

      @Nullable public @Nullable Collection<Contact> getCc()
      Specified by:
      getCc in interface Recipients
      Returns:
      Email carbon copy recipients.
    • getBcc

      @Nullable public @Nullable Collection<Contact> getBcc()
      Specified by:
      getBcc in interface Recipients
      Returns:
      Email blind carbon copy recipients.
    • getSubject

      @NonNull public @NonNull String getSubject()
    • getAttachments

      @Nullable public @Nullable List<Attachment> getAttachments()
    • getBody

      @Nullable public @Nullable Body getBody()
    • builder

      @NonNull public static Email.Builder builder()
      Returns:
      Builder