Package io.micronaut.email
Interface EmailComposer<I>
- Type Parameters:
I
- Email Request
- All Known Implementing Classes:
JavaxEmailComposer
,MailjetEmailComposer
,PostmarkEmailComposer
,SendgridEmailComposer
,SesEmailComposer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Composes an Email Request for the Transactional Email provider given a
Email
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Method Summary
-
Method Details
-
compose
@NonNull I compose(@NonNull @NotNull @Valid @NonNull @NotNull @Valid Email email) throws EmailException - Throws:
EmailException
-
compose
@NonNull default I compose(@NonNull @NotNull @Valid @NonNull @NotNull @Valid Email email, Consumer<I> emailRequest) throws EmailException - Throws:
EmailException
-