public class MailServiceVertxEBProxy extends Object implements MailService
DEFAULT_POOL_NAME| Constructor and Description |
|---|
MailServiceVertxEBProxy(Vertx vertx,
String address) |
MailServiceVertxEBProxy(Vertx vertx,
String address,
DeliveryOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the MailClient
|
MailService |
sendMail(MailMessage email,
Handler<AsyncResult<MailResult>> resultHandler)
send a single mail via MailClient
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEventBusProxycreateNonShared, createShared, createSharedpublic MailServiceVertxEBProxy(Vertx vertx, String address, DeliveryOptions options)
public MailService sendMail(MailMessage email, Handler<AsyncResult<MailResult>> resultHandler)
MailClientsendMail in interface MailClientsendMail in interface MailServiceemail - 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)public void close()
MailClientclose in interface MailClientclose in interface MailServiceCopyright © 2015. All rights reserved.