Interface Swift_Transport_SmtpAgent

Implemented bySwift_SmtpTransport, Swift_Transport_EsmtpTransport

Wraps an IoBuffer to send/receive SMTP commands/responses.

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

executeCommand() public abstract method

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

getBuffer() public abstract method

Get the IoBuffer where read/writes are occurring.

public abstract Swift_Transport_IoBuffer getBuffer ( )