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_Plugins_AntiFloodPlugin
  • Swift_Plugins_BandwidthMonitorPlugin
  • Swift_Plugins_DecoratorPlugin
  • Swift_Plugins_ImpersonatePlugin
  • Swift_Plugins_LoggerPlugin
  • Swift_Plugins_MessageLogger
  • Swift_Plugins_PopBeforeSmtpPlugin
  • Swift_Plugins_RedirectingPlugin
  • Swift_Plugins_ReporterPlugin
  • Swift_Plugins_Reporters_HitReporter
  • Swift_Plugins_Reporters_HtmlReporter
  • Swift_Plugins_ThrottlerPlugin

Interfaces

  • Swift_Plugins_Decorator_Replacements
  • Swift_Plugins_Pop_Pop3Connection
  • Swift_Plugins_Reporter
  • Swift_Plugins_Sleeper
  • Swift_Plugins_Timer

Class Swift_Plugins_PopBeforeSmtpPlugin

Makes sure a connection to a POP3 host has been established prior to connecting to SMTP.

Swift_Plugins_PopBeforeSmtpPlugin implements Swift_Events_TransportChangeListener, Swift_Plugins_Pop_Pop3Connection
Package: Swift\Plugins
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Plugins/PopBeforeSmtpPlugin.php

Methods summary

public
# __construct( string $host, integer $port = 110, string $crypto = null )

Create a new PopBeforeSmtpPlugin for $host and $port.

Create a new PopBeforeSmtpPlugin for $host and $port.

Parameters

$host
string
$host
$port
integer
$port
$crypto
string
$cypto as "tls" or "ssl"
public static Swift_Plugins_PopBeforeSmtpPlugin
# newInstance( string $host, integer $port = 110, string $crypto = null )

Create a new PopBeforeSmtpPlugin for $host and $port.

Create a new PopBeforeSmtpPlugin for $host and $port.

Parameters

$host
string
$host
$port
integer
$port
$crypto
string
$cypto as "tls" or "ssl"

Returns

Swift_Plugins_PopBeforeSmtpPlugin
public
# setConnection( Swift_Plugins_Pop_Pop3Connection $connection )

Set a Pop3Connection to delegate to instead of connecting directly.

Set a Pop3Connection to delegate to instead of connecting directly.

Parameters

$connection
Swift_Plugins_Pop_Pop3Connection
$connection
public
# bindSmtp( Swift_Transport $smtp )

Bind this plugin to a specific SMTP transport instance.

Bind this plugin to a specific SMTP transport instance.

Parameters

$smtp
Swift_Transport
public
# setTimeout( integer $timeout )

Set the connection timeout in seconds (default 10).

Set the connection timeout in seconds (default 10).

Parameters

$timeout
integer
$timeout
public
# setUsername( string $username )

Set the username to use when connecting (if needed).

Set the username to use when connecting (if needed).

Parameters

$username
string
$username
public
# setPassword( string $password )

Set the password to use when connecting (if needed).

Set the password to use when connecting (if needed).

Parameters

$password
string
$password
public
# connect( )

Connect to the POP3 host and authenticate.

Connect to the POP3 host and authenticate.

Throws

Swift_Plugins_Pop_Pop3Exception
if connection fails

Implementation of

Swift_Plugins_Pop_Pop3Connection::connect()
public
# disconnect( )

Disconnect from the POP3 host.

Disconnect from the POP3 host.

Throws

Swift_Plugins_Pop_Pop3Exception

Implementation of

Swift_Plugins_Pop_Pop3Connection::disconnect()
public
# beforeTransportStarted( Swift_Events_TransportChangeEvent $evt )

Invoked just before a Transport is started.

Invoked just before a Transport is started.

Parameters

$evt
Swift_Events_TransportChangeEvent
$evt

Implementation of

Swift_Events_TransportChangeListener::beforeTransportStarted()
public
# transportStarted( Swift_Events_TransportChangeEvent $evt )

Not used.

Not used.

Parameters

$evt
Swift_Events_TransportChangeEvent
$evt

Implementation of

Swift_Events_TransportChangeListener::transportStarted()
public
# beforeTransportStopped( Swift_Events_TransportChangeEvent $evt )

Not used.

Not used.

Parameters

$evt
Swift_Events_TransportChangeEvent
$evt

Implementation of

Swift_Events_TransportChangeListener::beforeTransportStopped()
public
# transportStopped( Swift_Events_TransportChangeEvent $evt )

Not used.

Not used.

Parameters

$evt
Swift_Events_TransportChangeEvent
$evt

Implementation of

Swift_Events_TransportChangeListener::transportStopped()
private
# _command( mixed $command )
private
# _assertOk( mixed $response )
private
# _getHostString( )

Magic methods summary

Properties summary

private mixed $_connection
#

A delegate connection to use (mostly a test hook)

A delegate connection to use (mostly a test hook)

private mixed $_host
#

Hostname of the POP3 server

Hostname of the POP3 server

private mixed $_port
#

Port number to connect on

Port number to connect on

private mixed $_crypto
#

Encryption type to use (if any)

Encryption type to use (if any)

private mixed $_username
#

Username to use (if any)

Username to use (if any)

private mixed $_password
#

Password to use (if any)

Password to use (if any)

private mixed $_socket
#

Established connection via TCP socket

Established connection via TCP socket

private integer $_timeout
#

Connect timeout in seconds

Connect timeout in seconds

private mixed $_transport
#

SMTP Transport to bind to

SMTP Transport to bind to

Blesta API documentation generated by ApiGen 2.8.0