Class Swift_Plugins_PopBeforeSmtpPlugin
Inheritance | Swift_Plugins_PopBeforeSmtpPlugin |
---|---|
Implements | Swift_Events_TransportChangeListener, Swift_Plugins_Pop_Pop3Connection |
Makes sure a connection to a POP3 host has been established prior to connecting to SMTP.
Public Methods
Method Details
Create a new PopBeforeSmtpPlugin for $host and $port.
public void __construct ( $host, $port = 110, $crypto = null ) | ||
$host | string | |
$port | int | |
$crypto | string | As "tls" or "ssl" |
Invoked just before a Transport is started.
public void beforeTransportStarted ( Swift_Events_TransportChangeEvent $evt ) | ||
$evt | Swift_Events_TransportChangeEvent |
Not used.
public void beforeTransportStopped ( Swift_Events_TransportChangeEvent $evt ) | ||
$evt |
Bind this plugin to a specific SMTP transport instance.
public void bindSmtp ( Swift_Transport $smtp ) | ||
$smtp |
Connect to the POP3 host and authenticate.
public void connect ( ) | ||
throws | Swift_Plugins_Pop_Pop3Exception | if connection fails |
---|
Disconnect from the POP3 host.
public void disconnect ( ) |
Create a new PopBeforeSmtpPlugin for $host and $port.
public static Swift_Plugins_PopBeforeSmtpPlugin newInstance ( $host, $port = 110, $crypto = null ) | ||
$host | string | |
$port | int | |
$crypto | string | As "tls" or "ssl" |
Set a Pop3Connection to delegate to instead of connecting directly.
public Swift_Plugins_PopBeforeSmtpPlugin setConnection ( Swift_Plugins_Pop_Pop3Connection $connection ) | ||
$connection | Swift_Plugins_Pop_Pop3Connection |
Set the password to use when connecting (if needed).
public Swift_Plugins_PopBeforeSmtpPlugin setPassword ( $password ) | ||
$password | string |
Set the connection timeout in seconds (default 10).
public Swift_Plugins_PopBeforeSmtpPlugin setTimeout ( $timeout ) | ||
$timeout | int |
Set the username to use when connecting (if needed).
public Swift_Plugins_PopBeforeSmtpPlugin setUsername ( $username ) | ||
$username | string |
Not used.
public void transportStarted ( Swift_Events_TransportChangeEvent $evt ) | ||
$evt |
Not used.
public void transportStopped ( Swift_Events_TransportChangeEvent $evt ) | ||
$evt |