Метод | Описание | |
---|---|---|
__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 |
public __construct ( Swift_Transport_IoBuffer $buf, array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher ) | ||
$buf | Swift_Transport_IoBuffer | |
$extensionHandlers | array | |
$dispatcher | Swift_Events_EventDispatcher |
protected doMailFromCommand ( $address ) |
protected doRcptToCommand ( $address ) |
public executeCommand ( string $command, int[] $codes = [], string[] &$failures = null ) : string | ||
$command | string | |
$codes | int[] | |
$failures | string[] | An array of failures by-reference |
Результат | string |
protected getBufferParams ( ) |
public getEncryption ( ) : string | ||
Результат | string |
public getExtensionHandlers ( ) : Swift_Transport_EsmtpHandler[] | ||
Результат | Swift_Transport_EsmtpHandler[] |
public getSourceIp ( ) : string | ||
Результат | string |
public getStreamOptions ( ) : array | ||
Результат | array |
public getTimeout ( ) : integer | ||
Результат | integer |
public setEncryption ( string $encryption ) : Swift_Transport_EsmtpTransport | ||
$encryption | string | |
Результат | Swift_Transport_EsmtpTransport |
public setExtensionHandlers ( array $handlers ) : Swift_Transport_EsmtpTransport | ||
$handlers | array | |
Результат | Swift_Transport_EsmtpTransport |
public setSourceIp ( string $source ) : Swift_Transport_EsmtpTransport | ||
$source | string | |
Результат | Swift_Transport_EsmtpTransport |
public setStreamOptions ( array $options ) : Swift_Transport_EsmtpTransport | ||
$options | array | |
Результат | Swift_Transport_EsmtpTransport |
public setTimeout ( integer $timeout ) : Swift_Transport_EsmtpTransport | ||
$timeout | integer | seconds |
Результат | Swift_Transport_EsmtpTransport |