XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Transport_EsmtpTransport Class Reference
Inheritance diagram for Swift_Transport_EsmtpTransport:
Inheritance graph

Public Member Functions

 __construct (Swift_Transport_IoBuffer $buf, array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher)
 
 __call ($method, $args)
 
 executeCommand ($command, $codes=array(), &$failures=null)
 
 getEncryption ()
 
 getExtensionHandlers ()
 
 getHost ()
 
 getPort ()
 
 getTimeout ()
 
 setEncryption ($enc)
 
 setExtensionHandlers (array $handlers)
 
 setHost ($host)
 
 setPort ($port)
 
 setTimeout ($timeout)
 
- Public Member Functions inherited from Swift_Transport_AbstractSmtpTransport
 __construct (Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher)
 
 __destruct ()
 
 executeCommand ($command, $codes=array(), &$failures=null)
 
 getBuffer ()
 
 getLocalDomain ()
 
 isStarted ()
 
 registerPlugin (Swift_Events_EventListener $plugin)
 
 reset ()
 
 send (Swift_Mime_Message $message, &$failedRecipients=null)
 
 setLocalDomain ($domain)
 
 start ()
 
 stop ()
 
- Public Member Functions inherited from Swift_Transport_SmtpAgent
 getBuffer ()
 

Protected Member Functions

 _doHeloCommand ()
 
 _doMailFromCommand ($address)
 
 _doRcptToCommand ($address)
 
 _getBufferParams ()
 
- Protected Member Functions inherited from Swift_Transport_AbstractSmtpTransport
 _assertResponseCode ($response, $wanted)
 
 _doDataCommand ()
 
 _doHeloCommand ()
 
 _doMailFromCommand ($address)
 
 _doRcptToCommand ($address)
 
 _getBufferParams ()
 
 _getFullResponse ($seq)
 
 _getReversePath (Swift_Mime_Message $message)
 
 _readGreeting ()
 
 _streamMessage (Swift_Mime_Message $message)
 
 _throwException (Swift_TransportException $e)
 

Private Member Functions

 _getActiveHandlers ()
 
 _getCapabilities ($ehloResponse)
 
 _setHandlerParams ()
 
 _sortHandlers ($a, $b)
 

Private Attributes

 $_capabilities = array()
 
 $_handlers = array()
 
 $_params
 

Additional Inherited Members

- Protected Attributes inherited from Swift_Transport_AbstractSmtpTransport
 $_buffer
 
 $_domain = '[127.0.0.1]'
 
 $_eventDispatcher
 
 $_started = false
 

Detailed Description

Definition at line 25 of file EsmtpTransport.php.

Constructor & Destructor Documentation

Swift_Transport_EsmtpTransport::__construct ( Swift_Transport_IoBuffer  $buf,
array  $extensionHandlers,
Swift_Events_EventDispatcher  $dispatcher 
)

Creates a new EsmtpTransport using the given I/O buffer.

Parameters
Swift_Transport_IoBuffer$buf
Swift_Transport_EsmtpHandler[]$extensionHandlers
Swift_Events_EventDispatcher$dispatcher

Definition at line 64 of file EsmtpTransport.php.

References __construct(), and setExtensionHandlers().

Here is the call graph for this function:

Member Function Documentation

Swift_Transport_EsmtpTransport::__call (   $method,
  $args 
)

Mixin handling method for ESMTP handlers

Definition at line 203 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::_doHeloCommand ( )
protected

Overridden to perform EHLO instead

Definition at line 235 of file EsmtpTransport.php.

References _getActiveHandlers(), _getCapabilities(), _setHandlerParams(), and executeCommand().

Here is the call graph for this function:

Swift_Transport_EsmtpTransport::_doMailFromCommand (   $address)
protected

Overridden to add Extension support

Definition at line 257 of file EsmtpTransport.php.

References _getActiveHandlers(), and executeCommand().

Here is the call graph for this function:

Swift_Transport_EsmtpTransport::_doRcptToCommand (   $address)
protected

Overridden to add Extension support

Definition at line 272 of file EsmtpTransport.php.

References _getActiveHandlers(), and executeCommand().

Here is the call graph for this function:

Swift_Transport_EsmtpTransport::_getActiveHandlers ( )
private

Get ESMTP handlers which are currently ok to use

Definition at line 321 of file EsmtpTransport.php.

Referenced by _doHeloCommand(), _doMailFromCommand(), _doRcptToCommand(), and executeCommand().

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::_getBufferParams ( )
protected

Get the params to initialize the buffer

Definition at line 229 of file EsmtpTransport.php.

References $_params.

Swift_Transport_EsmtpTransport::_getCapabilities (   $ehloResponse)
private

Determine ESMTP capabilities by function group

Definition at line 289 of file EsmtpTransport.php.

Referenced by _doHeloCommand().

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::_setHandlerParams ( )
private

Set parameters which are used by each extension handler

Definition at line 309 of file EsmtpTransport.php.

Referenced by _doHeloCommand(), and setExtensionHandlers().

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::_sortHandlers (   $a,
  $b 
)
private

Custom sort for extension handler ordering

Definition at line 335 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::executeCommand (   $command,
  $codes = array(),
$failures = null 
)

Run a command against the buffer, expecting the given response codes. 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.

Parameters
string$command
int[]$codes
string[]&$failures
Returns
string

Implements Swift_Transport_SmtpAgent.

Definition at line 182 of file EsmtpTransport.php.

References _getActiveHandlers().

Referenced by _doHeloCommand(), _doMailFromCommand(), and _doRcptToCommand().

Here is the call graph for this function:

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::getEncryption ( )

Get the encryption type.

Returns
string

Definition at line 142 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::getExtensionHandlers ( )

Get ESMTP extension handlers.

Returns
Swift_Transport_EsmtpHandler[]

Definition at line 168 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::getHost ( )

Get the host to connect to.

Returns
string

Definition at line 85 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::getPort ( )

Get the port to connect to.

Returns
int

Definition at line 104 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::getTimeout ( )

Get the connection timeout.

Returns
int

Definition at line 123 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::setEncryption (   $enc)

Set the encryption type (tls or ssl)

Parameters
string$encryption

Definition at line 132 of file EsmtpTransport.php.

Referenced by Swift_SmtpTransport\__construct().

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::setExtensionHandlers ( array  $handlers)

Set ESMTP extension handlers.

Parameters
Swift_Transport_EsmtpHandler[]$handlers

Definition at line 151 of file EsmtpTransport.php.

References _setHandlerParams().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::setHost (   $host)

Set the host to connect to.

Parameters
string$host

Definition at line 75 of file EsmtpTransport.php.

Referenced by Swift_SmtpTransport\__construct().

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::setPort (   $port)

Set the port to connect to.

Parameters
int$port

Definition at line 94 of file EsmtpTransport.php.

Referenced by Swift_SmtpTransport\__construct().

Here is the caller graph for this function:

Swift_Transport_EsmtpTransport::setTimeout (   $timeout)

Set the connection timeout.

Parameters
int$timeoutseconds

Definition at line 113 of file EsmtpTransport.php.

Member Data Documentation

Swift_Transport_EsmtpTransport::$_capabilities = array()
private

Definition at line 42 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::$_handlers = array()
private

Definition at line 35 of file EsmtpTransport.php.

Swift_Transport_EsmtpTransport::$_params
private
Initial value:
= array(
'protocol' => 'tcp',
'host' => 'localhost',
'port' => 25,
'timeout' => 30,
'blocking' => 1,
)

Definition at line 49 of file EsmtpTransport.php.

Referenced by _getBufferParams().


The documentation for this class was generated from the following file: