Class JavaxEmailComposer
java.lang.Object
io.micronaut.email.javamail.sender.JavaxEmailComposer
- All Implemented Interfaces:
EmailComposer<jakarta.mail.Message>
@Singleton
public class JavaxEmailComposer
extends Object
implements EmailComposer<jakarta.mail.Message>
Composes a
Message
given an Email
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionJavaxEmailComposer
(SessionProvider sessionProvider, MessageComposer messageComposer) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.email.EmailComposer
compose
-
Constructor Details
-
JavaxEmailComposer
- Parameters:
sessionProvider
- Session ProvidermessageComposer
- Message Composer
-
-
Method Details
-
compose
@NonNull public @NonNull jakarta.mail.Message compose(@NonNull @NotNull @Valid @NonNull @NotNull @Valid Email email) throws EmailException - Specified by:
compose
in interfaceEmailComposer<jakarta.mail.Message>
- Throws:
EmailException
-