Interface Swift_Transport_SmtpAgent
Implemented by | Swift_SmtpTransport, Swift_Transport_EsmtpTransport |
---|
Wraps an IoBuffer to send/receive SMTP commands/responses.
Public Methods
Method | Description | Defined By |
---|---|---|
executeCommand() | Run a command against the buffer, expecting the given response codes. | Swift_Transport_SmtpAgent |
getBuffer() | Get the IoBuffer where read/writes are occurring. | Swift_Transport_SmtpAgent |
Method Details
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.
public abstract void executeCommand ( $command, $codes = [], <b>&</b>$failures = null ) | ||
$command | string | |
$codes | int | |
$failures | string[] | An array of failures by-reference |
Get the IoBuffer where read/writes are occurring.
public abstract Swift_Transport_IoBuffer getBuffer ( ) |