Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • Swift_FailoverTransport
  • Swift_LoadBalancedTransport
  • Swift_MailTransport
  • Swift_Plugins_Loggers_ArrayLogger
  • Swift_Plugins_Loggers_EchoLogger
  • Swift_SendmailTransport
  • Swift_SmtpTransport
  • Swift_Transport_AbstractSmtpTransport
  • Swift_Transport_Esmtp_Auth_CramMd5Authenticator
  • Swift_Transport_Esmtp_Auth_LoginAuthenticator
  • Swift_Transport_Esmtp_Auth_NTLMAuthenticator
  • Swift_Transport_Esmtp_Auth_PlainAuthenticator
  • Swift_Transport_Esmtp_Auth_XOAuth2Authenticator
  • Swift_Transport_Esmtp_AuthHandler
  • Swift_Transport_EsmtpTransport
  • Swift_Transport_FailoverTransport
  • Swift_Transport_LoadBalancedTransport
  • Swift_Transport_MailTransport
  • Swift_Transport_SendmailTransport
  • Swift_Transport_SimpleMailInvoker
  • Swift_Transport_StreamBuffer

Interfaces

  • Swift_Plugins_Logger
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent

Exceptions

  • Swift_Plugins_Pop_Pop3Exception
  • Swift_TransportException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class Swift_Transport_EsmtpTransport

Sends Messages over SMTP with ESMTP support.

Swift_Transport_AbstractSmtpTransport implements Swift_Transport
Extended by Swift_Transport_EsmtpTransport implements Swift_Transport_SmtpAgent

Direct known subclasses

Swift_SmtpTransport
Package: Swift\Transport
Author: Chris Corbyn
Located at wa-system/vendors/swift/classes/Swift/Transport/EsmtpTransport.php
Methods summary
public
# __construct( Swift_Transport_IoBuffer $buf, array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher )

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

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

Parameters

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

Overrides

Swift_Transport_AbstractSmtpTransport::__construct()
public Swift_Transport_EsmtpTransport
# setHost( string $host )

Set the host to connect to.

Set the host to connect to.

Parameters

$host
string
$host

Returns

Swift_Transport_EsmtpTransport
public string
# getHost( )

Get the host to connect to.

Get the host to connect to.

Returns

string
public Swift_Transport_EsmtpTransport
# setPort( integer $port )

Set the port to connect to.

Set the port to connect to.

Parameters

$port
integer
$port

Returns

Swift_Transport_EsmtpTransport
public integer
# getPort( )

Get the port to connect to.

Get the port to connect to.

Returns

integer
public Swift_Transport_EsmtpTransport
# setTimeout( integer $timeout )

Set the connection timeout.

Set the connection timeout.

Parameters

$timeout
integer
$timeout seconds

Returns

Swift_Transport_EsmtpTransport
public integer
# getTimeout( )

Get the connection timeout.

Get the connection timeout.

Returns

integer
public Swift_Transport_EsmtpTransport
# setEncryption( string $encryption )

Set the encryption type (tls or ssl)

Set the encryption type (tls or ssl)

Parameters

$encryption
string
$encryption

Returns

Swift_Transport_EsmtpTransport
public string
# getEncryption( )

Get the encryption type.

Get the encryption type.

Returns

string
public Swift_Transport_EsmtpTransport
# setSourceIp( string $source )

Sets the source IP.

Sets the source IP.

Parameters

$source
string
$source

Returns

Swift_Transport_EsmtpTransport

Overrides

Swift_Transport_AbstractSmtpTransport::setSourceIp()
public string
# getSourceIp( )

Returns the IP used to connect to the destination.

Returns the IP used to connect to the destination.

Returns

string

Overrides

Swift_Transport_AbstractSmtpTransport::getSourceIp()
public Swift_Transport_EsmtpTransport
# setExtensionHandlers( array $handlers )

Set ESMTP extension handlers.

Set ESMTP extension handlers.

Parameters

$handlers
Swift_Transport_EsmtpHandler[]
$handlers

Returns

Swift_Transport_EsmtpTransport
public Swift_Transport_EsmtpHandler[]
# getExtensionHandlers( )

Get ESMTP extension handlers.

Get ESMTP extension handlers.

Returns

Swift_Transport_EsmtpHandler[]
public string
# executeCommand( string $command, int[] $codes = array(), string[] & $failures = null )

Run a command against the buffer, expecting the given response codes.

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

$command
string
$command
$codes
int[]
$codes
$failures
string[]
$failures An array of failures by-reference

Returns

string

Overrides

Swift_Transport_AbstractSmtpTransport::executeCommand()

Implementation of

Swift_Transport_SmtpAgent::executeCommand()
public
# __call( mixed $method, mixed $args )

Mixin handling method for ESMTP handlers

Mixin handling method for ESMTP handlers

protected
# _getBufferParams( )

Get the params to initialize the buffer

Get the params to initialize the buffer

protected
# _doHeloCommand( )

Overridden to perform EHLO instead

Overridden to perform EHLO instead

Overrides

Swift_Transport_AbstractSmtpTransport::_doHeloCommand()
protected
# _doMailFromCommand( mixed $address )

Overridden to add Extension support

Overridden to add Extension support

Overrides

Swift_Transport_AbstractSmtpTransport::_doMailFromCommand()
protected
# _doRcptToCommand( mixed $address )

Overridden to add Extension support

Overridden to add Extension support

Overrides

Swift_Transport_AbstractSmtpTransport::_doRcptToCommand()
private
# _getCapabilities( mixed $ehloResponse )

Determine ESMTP capabilities by function group

Determine ESMTP capabilities by function group

private
# _setHandlerParams( )

Set parameters which are used by each extension handler

Set parameters which are used by each extension handler

private
# _getActiveHandlers( )

Get ESMTP handlers which are currently ok to use

Get ESMTP handlers which are currently ok to use

private
# _sortHandlers( mixed $a, mixed $b )

Custom sort for extension handler ordering

Custom sort for extension handler ordering

Methods inherited from Swift_Transport_AbstractSmtpTransport
__destruct(), _assertResponseCode(), _doDataCommand(), _getFullResponse(), _getReversePath(), _readGreeting(), _streamMessage(), _throwException(), getBuffer(), getLocalDomain(), isStarted(), registerPlugin(), reset(), send(), setLocalDomain(), start(), stop()
Properties summary
private Swift_Transport_EsmtpHandler[] $_handlers array()
#

ESMTP extension handlers.

ESMTP extension handlers.

private string[] $_capabilities array()
#

ESMTP capabilities.

ESMTP capabilities.

private array $_params array( 'protocol' => 'tcp', 'host' => 'localhost', 'port' => 25, 'timeout' => 30, 'blocking' => 1, 'tls' => false, 'type' => Swift_Transport_IoBuffer::TYPE_SOCKET )
#

Connection buffer parameters.

Connection buffer parameters.

Properties inherited from Swift_Transport_AbstractSmtpTransport
$_buffer, $_domain, $_eventDispatcher, $_sourceIp, $_started
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0