$buffer
$buffer : \Pop\Mail\Transport\Smtp\Stream\BufferInterface
Input-Output buffer for sending/receiving SMTP commands and responses
SMTP transport class
$buffer : \Pop\Mail\Transport\Smtp\Stream\BufferInterface
Input-Output buffer for sending/receiving SMTP commands and responses
__construct(string $host = 'localhost', integer $port = 25, string $sec = null, \Pop\Mail\Transport\Smtp\Stream\BufferInterface $buffer = null, array $handlers = null)
Create a new SMTP transport
string | $host | host |
integer | $port | port |
string | $sec | security |
\Pop\Mail\Transport\Smtp\Stream\BufferInterface | $buffer | buffer |
array | $handlers | handlers |
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 |
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 |
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 message
\Pop\Mail\Message | $message |
getBuffer() : \Pop\Mail\Transport\Smtp\Stream\BufferInterface
Get the IoBuffer where read/writes are occurring.
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 |
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 |
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 |