MailClient

SMTP mail client for Vert.x <p> A simple asynchronous API for sending mails from Vert.x applications

package

Default

Methods

__construct

__construct() 

close the MailClient

close() : void

create a non shared instance of the mail client

createNonShared( $arg0,  $arg1) : \io\vertx\jphp\ext\mail\MailClient
static

Arguments

$arg0

Vertx

$arg1

array | MailConfig

Response

\io\vertx\jphp\ext\mail\MailClient

MailClient instance that can then be used to send multiple mails

Like @see \io\vertx\jphp\ext\mail\MailClient::createShared but with the default pool name

createShared( $arg0,  $arg1,  $arg2 = null) : \io\vertx\jphp\ext\mail\MailClient
static

param $vertx [Vertx] the Vert.x instance param $config [MailConfig | array] the configuration createShared($vertx, $config)

Create a Mail client which shares its connection pool with any other Mail clients created with the same pool name

param $vertx [Vertx] the Vert.x instance param $config [MailConfig | array] the configuration param $poolName [string] the pool name createShared($vertx, $config, $poolName)

Arguments

$arg0

Vertx

$arg1

array | MailConfig

$arg2

string

Response

\io\vertx\jphp\ext\mail\MailClient

the client

send a single mail via MailClient

sendMail( $arg0,  $arg1) : $this

Arguments

$arg0

MailMessage | array

$arg1

callable

Response

$this

this MailClient instance so the method can be used fluently

Constants

The name of the default pool

DEFAULT_POOL_NAME
var

php文件只是为了写代码方便,常量的实际值请参考原java文件