Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • 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_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent

Exceptions

  • Swift_Plugins_Pop_Pop3Exception
  • Swift_TransportException

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 vendors/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
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 $enc )

Set the encryption type (tls or ssl)

Set the encryption type (tls or ssl)

Parameters

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

Sets the sourceIp

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. 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
string
$command
$codes
int[]
$codes
$failures
string[]
&$failures

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()

Magic methods summary

Properties summary

private Swift_Transport_EsmtpHandler[] $_handlers
#

ESMTP extension handlers.

ESMTP extension handlers.

private string[] $_capabilities
#

ESMTP capabilities.

ESMTP capabilities.

private array $_params
#

Connection buffer parameters.

Connection buffer parameters.

Properties inherited from Swift_Transport_AbstractSmtpTransport

$_buffer, $_domain, $_eventDispatcher, $_sourceIp, $_started

Blesta API documentation generated by ApiGen 2.8.0