public class MailServiceVertxEBProxy extends Object implements MailService
| Constructor and Description |
|---|
MailServiceVertxEBProxy(Vertx vertx,
String address) |
| 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, waitcreateEventBusProxycreatepublic 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)
the result JsonObject currently only contains {"result":"success"}public void close()
MailClientclose in interface MailClientclose in interface MailServiceCopyright © 2015. All Rights Reserved.