mediatekformation

SendmailTransport extends AbstractTransport
in package

SendmailTransport for sending mail through a Sendmail/Postfix (etc..) binary.

Supported modes are -bs and -t, with any additional flags desired. It is advised to use -bs mode since error reporting with -t mode is not possible.

Tags
author

Fabien Potencier fabien@symfony.com

author

Chris Corbyn

Table of Contents

$command  : mixed
$dispatcher  : mixed
$lastSent  : mixed
$logger  : mixed
$rate  : mixed
$stream  : mixed
$transport  : mixed
__construct()  : mixed
Constructor.
__toString()  : string
send()  : SentMessage|null
setMaxPerSecond()  : self
Sets the maximum number of messages to send per second (0 to disable).
doSend()  : void
getLogger()  : LoggerInterface
stringifyAddresses()  : array<string|int, string>
checkThrottling()  : mixed

Properties

Methods

__construct()

Constructor.

public __construct([string $command = null ][, EventDispatcherInterface $dispatcher = null ][, LoggerInterface $logger = null ]) : mixed

If using -t mode you are strongly advised to include -oi or -i in the flags. For example: /usr/sbin/sendmail -oi -t -f flag will be appended automatically if one is not present.

The recommended mode is "-bs" since it is interactive and failure notifications are hence possible.

Parameters
$command : string = null
$dispatcher : EventDispatcherInterface = null
$logger : LoggerInterface = null
Return values
mixed

setMaxPerSecond()

Sets the maximum number of messages to send per second (0 to disable).

public setMaxPerSecond(float $rate) : self
Parameters
$rate : float
Return values
self

stringifyAddresses()

protected stringifyAddresses(array<string|int, Address$addresses) : array<string|int, string>
Parameters
$addresses : array<string|int, Address>
Return values
array<string|int, string>

Search results