Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

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_PlainAuthenticator
  • 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_Plugins_Pop_Pop3Exception
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent
  • Swift_TransportException
  • Overview
  • Package
  • Class
  • Todo
  • Download

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 classes/swiftmailer/lib/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
$extensionHandlers
$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

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

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
seconds

Returns

Swift_Transport_EsmtpTransport
public integer
# getTimeout( )

Get the connection timeout.

Get the connection timeout.

Returns

integer
public Swift_Transport_EsmtpTransport
# setEncryption( string $enc )

Set the encryption type (tls or ssl)

Set the encryption type (tls or ssl)

Parameters

$enc
$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 sourceIp

Sets the sourceIp

Parameters

$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

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. 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.

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
$codes
$failures
$failures

Returns

string

Overrides

Swift_Transport_AbstractSmtpTransport::executeCommand()

Implementation of

Swift_Transport_SmtpAgent::executeCommand()
public
# __call( $method, $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( $address )

Overridden to add Extension support

Overridden to add Extension support

Overrides

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

Overridden to add Extension support

Overridden to add Extension support

Overrides

Swift_Transport_AbstractSmtpTransport::_doRcptToCommand()
private
# _getCapabilities( $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( $a, $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

ESMTP extension handlers.

ESMTP extension handlers.

# array()
private string[] $_capabilities

ESMTP capabilities.

ESMTP capabilities.

# array()
private array $_params

Connection buffer parameters.

Connection buffer parameters.

# array( 'protocol' => 'tcp', 'host' => 'localhost', 'port' => 25, 'timeout' => 30, 'blocking' => 1, 'tls' => false, 'type' => Swift_Transport_IoBuffer::TYPE_SOCKET )
Properties inherited from Swift_Transport_AbstractSmtpTransport
$_buffer, $_domain, $_eventDispatcher, $_sourceIp, $_started
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen