$buffer
$buffer : \Pop\Mail\Transport\Smtp\Stream\BufferInterface
Input-Output buffer for sending/receiving SMTP commands and responses
ESMTP transport class
$buffer : \Pop\Mail\Transport\Smtp\Stream\BufferInterface
Input-Output buffer for sending/receiving SMTP commands and responses
__construct(\Pop\Mail\Transport\Smtp\Stream\BufferInterface $buffer = null, array $handlers = null)
Creates a new EsmtpTransport using the given I/O buffer
\Pop\Mail\Transport\Smtp\Stream\BufferInterface | $buffer | |
array | $handlers |
setLocalDomain(string $domain) : \Pop\Mail\Transport\Smtp\AbstractSmtp
Set the name of the local domain which Swift will identify itself as.
This should be a fully-qualified domain name and should be truly the domain you're using.
If your server doesn't have a domain name, use the IP in square brackets (i.e. [127.0.0.1]).
string | $domain |
setSourceIp(string $source) : \Pop\Mail\Transport\Smtp\EsmtpTransport
Sets the source IP
string | $source |
send(\Pop\Mail\Message $message) : integer
Send the given Message.
Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery.
\Pop\Mail\Message | $message |
getBuffer() : \Pop\Mail\Transport\Smtp\Stream\BufferInterface
Get the IoBuffer where read/writes are occurring.
executeCommand(string $command, array<mixed,integer> $codes = array()) : string
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.
string | $command | |
array<mixed,integer> | $codes |
setHost(string $host) : \Pop\Mail\Transport\Smtp\EsmtpTransport
Set the host to connect to
string | $host |
setPort(integer $port) : \Pop\Mail\Transport\Smtp\EsmtpTransport
Set the port to connect to
integer | $port |
setTimeout(integer $timeout) : \Pop\Mail\Transport\Smtp\EsmtpTransport
Set the connection timeout
integer | $timeout | seconds |
setEncryption(string $encryption) : \Pop\Mail\Transport\Smtp\EsmtpTransport
Set the encryption type (tls or ssl)
string | $encryption |
setStreamOptions(array $options) : \Pop\Mail\Transport\Smtp\EsmtpTransport
Sets the stream context options
array | $options |
setExtensionHandlers(array $handlers) : \Pop\Mail\Transport\Smtp\EsmtpTransport
Set ESMTP extension handlers
array | $handlers |
streamMessage(\Pop\Mail\Message $message)
Stream the contents of the message over the buffer
\Pop\Mail\Message | $message |
getReversePath(\Pop\Mail\Message $message) : null|string
Determine the best-use reverse path for this message
\Pop\Mail\Message | $message |
throwException(\Pop\Mail\Transport\Smtp\Exception $e)
Throw a TransportException, first sending it to any listeners
\Pop\Mail\Transport\Smtp\Exception | $e |
doMailTransaction(\Pop\Mail\Message $message, string $reversePath, array $recipients) : integer
Send an email to the given recipients from the given reverse path
\Pop\Mail\Message | $message | |
string | $reversePath | |
array | $recipients |
sendTo(\Pop\Mail\Message $message, string $reversePath, array $to) : integer
Send a message to the given To: recipients
\Pop\Mail\Message | $message | |
string | $reversePath | |
array | $to |
sendBcc(\Pop\Mail\Message $message, string $reversePath, array $bcc) : integer
Send a message to all Bcc: recipients
\Pop\Mail\Message | $message | |
string | $reversePath | |
array | $bcc |
sortHandlers(\Pop\Mail\Transport\Smtp\HandlerInterface $a, \Pop\Mail\Transport\Smtp\HandlerInterface $b) : integer
Custom sort for extension handler ordering
\Pop\Mail\Transport\Smtp\HandlerInterface | $a | |
\Pop\Mail\Transport\Smtp\HandlerInterface | $b |