@ApplicationScoped public class MutinyMailerImpl extends Object implements ReactiveMailer
Modifier and Type | Field and Description |
---|---|
(package private) io.vertx.mutiny.ext.mail.MailClient |
client |
(package private) MockMailboxImpl |
mockMailbox |
(package private) io.vertx.mutiny.core.Vertx |
vertx |
Constructor and Description |
---|
MutinyMailerImpl() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
configure(Optional<String> from,
Optional<String> bounceAddress,
boolean mock) |
static io.smallrye.mutiny.Uni<io.vertx.core.buffer.Buffer> |
getAttachmentStream(io.vertx.mutiny.core.Vertx vertx,
Attachment attachment) |
io.smallrye.mutiny.Uni<Void> |
send(Mail... mails)
Sends the given emails.
|
@Inject io.vertx.mutiny.ext.mail.MailClient client
@Inject io.vertx.mutiny.core.Vertx vertx
@Inject MockMailboxImpl mockMailbox
public io.smallrye.mutiny.Uni<Void> send(Mail... mails)
ReactiveMailer
send
in interface ReactiveMailer
mails
- the emails to send, must not be null
, must not contain null
Uni
indicating when the mails have been sent. The Uni
may fire a failure if the
emails cannot be sent.public static io.smallrye.mutiny.Uni<io.vertx.core.buffer.Buffer> getAttachmentStream(io.vertx.mutiny.core.Vertx vertx, Attachment attachment)
Copyright © 2020 JBoss by Red Hat. All rights reserved.