PHP Класс Swift_Transport_EsmtpTransport

Автор: Chris Corbyn
Наследование: extends Swift_Transport_AbstractSmtpTransport, implements Swift_Transport_SmtpAgent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__call ( $method, $args ) Mixin handling method for ESMTP handlers
__construct ( Swift_Transport_IoBuffer $buf, array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher ) Creates a new EsmtpTransport using the given I/O buffer.
executeCommand ( string $command, int[] $codes = [], string[] &$failures = null ) : string Run a command against the buffer, expecting the given response codes.
getEncryption ( ) : string Get the encryption type.
getExtensionHandlers ( ) : Swift_Transport_EsmtpHandler[] Get ESMTP extension handlers.
getHost ( ) : string Get the host to connect to.
getPort ( ) : integer Get the port to connect to.
getSourceIp ( ) : string Returns the IP used to connect to the destination.
getStreamOptions ( ) : array Returns the stream context options.
getTimeout ( ) : integer Get the connection timeout.
setEncryption ( string $encryption ) : Swift_Transport_EsmtpTransport Set the encryption type (tls or ssl).
setExtensionHandlers ( array $handlers ) : Swift_Transport_EsmtpTransport Set ESMTP extension handlers.
setHost ( string $host ) : Swift_Transport_EsmtpTransport Set the host to connect to.
setPort ( integer $port ) : Swift_Transport_EsmtpTransport Set the port to connect to.
setSourceIp ( string $source ) : Swift_Transport_EsmtpTransport Sets the source IP.
setStreamOptions ( array $options ) : Swift_Transport_EsmtpTransport Sets the stream context options.
setTimeout ( integer $timeout ) : Swift_Transport_EsmtpTransport Set the connection timeout.

Защищенные методы

Метод Описание
doHeloCommand ( ) Overridden to perform EHLO instead
doMailFromCommand ( $address ) Overridden to add Extension support
doRcptToCommand ( $address ) Overridden to add Extension support
getBufferParams ( ) Get the params to initialize the buffer

Приватные методы

Метод Описание
getActiveHandlers ( ) Get ESMTP handlers which are currently ok to use
getCapabilities ( $ehloResponse ) Determine ESMTP capabilities by function group
setHandlerParams ( ) Set parameters which are used by each extension handler

Описание методов

__call() публичный Метод

Mixin handling method for ESMTP handlers
public __call ( $method, $args )

__construct() публичный Метод

Creates a new EsmtpTransport using the given I/O buffer.
public __construct ( Swift_Transport_IoBuffer $buf, array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher )
$buf Swift_Transport_IoBuffer
$extensionHandlers array
$dispatcher Swift_Events_EventDispatcher

doHeloCommand() защищенный Метод

Overridden to perform EHLO instead
protected doHeloCommand ( )

doMailFromCommand() защищенный Метод

Overridden to add Extension support
protected doMailFromCommand ( $address )

doRcptToCommand() защищенный Метод

Overridden to add Extension support
protected doRcptToCommand ( $address )

executeCommand() публичный Метод

If no response codes are given, the response will not be validated. If codes are given, an exception will be thrown on an invalid response.
public executeCommand ( string $command, int[] $codes = [], string[] &$failures = null ) : string
$command string
$codes int[]
$failures string[] An array of failures by-reference
Результат string

getBufferParams() защищенный Метод

Get the params to initialize the buffer
protected getBufferParams ( )

getEncryption() публичный Метод

Get the encryption type.
public getEncryption ( ) : string
Результат string

getExtensionHandlers() публичный Метод

Get ESMTP extension handlers.
public getExtensionHandlers ( ) : Swift_Transport_EsmtpHandler[]
Результат Swift_Transport_EsmtpHandler[]

getHost() публичный Метод

Get the host to connect to.
public getHost ( ) : string
Результат string

getPort() публичный Метод

Get the port to connect to.
public getPort ( ) : integer
Результат integer

getSourceIp() публичный Метод

Returns the IP used to connect to the destination.
public getSourceIp ( ) : string
Результат string

getStreamOptions() публичный Метод

Returns the stream context options.
public getStreamOptions ( ) : array
Результат array

getTimeout() публичный Метод

Get the connection timeout.
public getTimeout ( ) : integer
Результат integer

setEncryption() публичный Метод

Set the encryption type (tls or ssl).
public setEncryption ( string $encryption ) : Swift_Transport_EsmtpTransport
$encryption string
Результат Swift_Transport_EsmtpTransport

setExtensionHandlers() публичный Метод

Set ESMTP extension handlers.
public setExtensionHandlers ( array $handlers ) : Swift_Transport_EsmtpTransport
$handlers array
Результат Swift_Transport_EsmtpTransport

setHost() публичный Метод

Set the host to connect to.
public setHost ( string $host ) : Swift_Transport_EsmtpTransport
$host string
Результат Swift_Transport_EsmtpTransport

setPort() публичный Метод

Set the port to connect to.
public setPort ( integer $port ) : Swift_Transport_EsmtpTransport
$port integer
Результат Swift_Transport_EsmtpTransport

setSourceIp() публичный Метод

Sets the source IP.
public setSourceIp ( string $source ) : Swift_Transport_EsmtpTransport
$source string
Результат Swift_Transport_EsmtpTransport

setStreamOptions() публичный Метод

Sets the stream context options.
public setStreamOptions ( array $options ) : Swift_Transport_EsmtpTransport
$options array
Результат Swift_Transport_EsmtpTransport

setTimeout() публичный Метод

Set the connection timeout.
public setTimeout ( integer $timeout ) : Swift_Transport_EsmtpTransport
$timeout integer seconds
Результат Swift_Transport_EsmtpTransport