Class DefaultMessageComposer

java.lang.Object
io.micronaut.email.javamail.composer.DefaultMessageComposer
All Implemented Interfaces:
MessageComposer

@Singleton public class DefaultMessageComposer extends Object implements MessageComposer
DefaultImplementation of MessageComposer.
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • DefaultMessageComposer

      public DefaultMessageComposer()
  • Method Details

    • compose

      @NonNull public @NonNull jakarta.mail.Message compose(@NonNull @NonNull Email email, @NonNull @NonNull jakarta.mail.Session session) throws jakarta.mail.MessagingException
      Specified by:
      compose in interface MessageComposer
      Parameters:
      email - Email
      session - Session Object
      Returns:
      A Message
      Throws:
      jakarta.mail.MessagingException - when creating Message