Documentation

Swift_Transport_SmtpAgent

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

Tags
author

Chris Corbyn

Table of Contents

executeCommand()  : mixed
Run a command against the buffer, expecting the given response codes.
getBuffer()  : Swift_Transport_IoBuffer
Get the IoBuffer where read/writes are occurring.

Methods

executeCommand()

Run a command against the buffer, expecting the given response codes.

public executeCommand(string $command[, array<string|int, int> $codes = [] ][, array<string|int, string> &$failures = null ]) : mixed

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.

Parameters
$command : string
$codes : array<string|int, int> = []
$failures : array<string|int, string> = null

An array of failures by-reference

Return values
mixed

Search results