Class PostmarkEmailComposer

java.lang.Object
io.micronaut.email.postmark.PostmarkEmailComposer
All Implemented Interfaces:
EmailComposer<com.postmarkapp.postmark.client.data.model.message.Message>

@Singleton public class PostmarkEmailComposer extends Object implements EmailComposer<com.postmarkapp.postmark.client.data.model.message.Message>
Composes a Message given an Email.
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • PostmarkEmailComposer

      public PostmarkEmailComposer(PostmarkConfiguration postmarkConfiguration)
      Parameters:
      postmarkConfiguration - Postmark configuration
  • Method Details

    • compose

      @NonNull public @NonNull com.postmarkapp.postmark.client.data.model.message.Message compose(@NonNull @NotNull @Valid @NonNull @NotNull @Valid Email email) throws EmailException
      Specified by:
      compose in interface EmailComposer<com.postmarkapp.postmark.client.data.model.message.Message>
      Throws:
      EmailException