public interface MailService extends MailClient
DEFAULT_POOL_NAME| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the MailClient
|
static MailService |
createEventBusProxy(Vertx vertx,
String address)
create a proxy of MailService that delegates to the mail service running somewhere else via the event bus
|
MailService |
sendMail(MailMessage email,
Handler<AsyncResult<MailResult>> resultHandler)
send a single mail via MailClient
|
createNonShared, createShared, createSharedstatic MailService createEventBusProxy(Vertx vertx, String address)
vertx - the Vertx instance the proxy will be run inaddress - the eb address of the mail service running somewhere, default is "vertx.mail"MailService sendMail(MailMessage email, Handler<AsyncResult<MailResult>> resultHandler)
MailClientsendMail in interface MailClientemail - MailMessage object containing the mail text, from/to, attachments etcresultHandler - will be called when the operation is finished or it fails
(may be null to ignore the result)void close()
MailClientclose in interface MailClientCopyright © 2015. All rights reserved.