PHP 클래스 Swift_Transport_EsmtpTransport

저자: Chris Corbyn
상속: extends Swift_Transport_AbstractSmtpTransport, implements Swift_Transport_SmtpAgent
파일 보기 프로젝트 열기: swiftmailer/swiftmailer 1 사용 예제들

공개 메소드들

메소드 설명
__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