Package io.quarkus.mailer.runtime
Class MutinyMailerImpl
java.lang.Object
io.quarkus.mailer.runtime.MutinyMailerImpl
- All Implemented Interfaces:
ReactiveMailer
-
Constructor Summary
ConstructorDescriptionMutinyMailerImpl
(io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.ext.mail.MailClient client, MockMailboxImpl mockMailbox, String from, String bounceAddress, boolean mock, List<Pattern> approvedRecipients, boolean logRejectedRecipients) -
Method Summary
Modifier and TypeMethodDescriptionstatic io.smallrye.mutiny.Uni<io.vertx.core.buffer.Buffer>
getAttachmentStream
(io.vertx.mutiny.core.Vertx vertx, Attachment attachment) io.smallrye.mutiny.Uni<Void>
Sends the given emails.
-
Constructor Details
-
MutinyMailerImpl
MutinyMailerImpl(io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.ext.mail.MailClient client, MockMailboxImpl mockMailbox, String from, String bounceAddress, boolean mock, List<Pattern> approvedRecipients, boolean logRejectedRecipients)
-
-
Method Details
-
send
Description copied from interface:ReactiveMailer
Sends the given emails.- Specified by:
send
in interfaceReactiveMailer
- Parameters:
mails
- the emails to send, must not benull
, must not containnull
- Returns:
- a
Uni
indicating when the mails have been sent. TheUni
may fire a failure if the emails cannot be sent.
-
getAttachmentStream
public static io.smallrye.mutiny.Uni<io.vertx.core.buffer.Buffer> getAttachmentStream(io.vertx.mutiny.core.Vertx vertx, Attachment attachment)
-