SMTP mail client for Vert.x <p> A simple asynchronous API for sending mails from Vert.x applications
package |
Default |
---|
__construct()
close() : void
createNonShared( $arg0, $arg1) : \io\vertx\jphp\ext\mail\MailClient
Vertx
array | MailConfig
\io\vertx\jphp\ext\mail\MailClient
MailClient instance that can then be used to send multiple mails
createShared( $arg0, $arg1, $arg2 = null) : \io\vertx\jphp\ext\mail\MailClient
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)
Vertx
array | MailConfig
string
\io\vertx\jphp\ext\mail\MailClient
the client
sendMail( $arg0, $arg1) : $this
MailMessage | array
callable
$this
this MailClient instance so the method can be used fluently
DEFAULT_POOL_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|