$buffer
$buffer : \Pop\Mail\Transport\Smtp\Stream\BufferInterface
Input-Output buffer for sending/receiving SMTP commands and responses
Abstract SMTP 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)
Creates a new EsmtpTransport using the given I/O buffer.
\Pop\Mail\Transport\Smtp\Stream\BufferInterface | $buffer |
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 |
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 |
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 |