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 classes/swiftmailer/lib/classes/Swift/Plugins/PopBeforeSmtpPlugin.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Plugins/PopBeforeSmtpPlugin.php
public
|
#
__construct( string $host, integer $port = 110, string $crypto = null )
Create a new PopBeforeSmtpPlugin for $host and $port. |
public static
|
#
newInstance( string $host, integer $port = 110, string $crypto = null )
Create a new PopBeforeSmtpPlugin for $host and $port. |
public
|
#
setConnection(
Set a Pop3Connection to delegate to instead of connecting directly. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
beforeTransportStarted(
Invoked just before a Transport is started. |
public
|
|
public
|
|
public
|
|
private
|
|
private
|
|
private
|
private
|
$_connection
A delegate connection to use (mostly a test hook) |
|
private
|
$_host
Hostname of the POP3 server |
|
private
|
$_port
Port number to connect on |
|
private
|
$_crypto
Encryption type to use (if any) |
|
private
|
$_username
Username to use (if any) |
|
private
|
$_password
Password to use (if any) |
|
private
|
$_socket
Established connection via TCP socket |
|
private
integer
|
$_timeout
Connect timeout in seconds |
#
10
|
private
|
$_transport
SMTP Transport to bind to |