HumHub Documentation (unofficial)

SendmailTransport extends AbstractTransport
in package

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

Transport can be instantiated through SendmailTransportFactory or NativeTransportFactory:

  • SendmailTransportFactory to use most common sendmail path and recommended options
  • NativeTransportFactory when configuration is set via php.ini
Tags
author

Fabien Potencier fabien@symfony.com

author

Chris Corbyn

Table of Contents

Properties

$command  : mixed
$dispatcher  : mixed
$lastSent  : mixed
$logger  : mixed
$rate  : mixed
$stream  : mixed
$transport  : mixed

Methods

__construct()  : mixed
Constructor.
__toString()  : string
send()  : SentMessage|null
setMaxPerSecond()  : $this
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|null $command = null ][, EventDispatcherInterface|null $dispatcher = null ][, LoggerInterface|null $logger = null ]) : mixed

Supported modes are -bs and -t, with any additional flags desired.

The recommended mode is "-bs" since it is interactive and failure notifications are hence possible. Note that the -t mode does not support error reporting and does not support Bcc properly (the Bcc headers are not removed).

If using -t mode, you are strongly advised to include -oi or -i in the flags (like /usr/sbin/sendmail -oi -t)

-f flag will be appended automatically if one is not present.

Parameters
$command : string|null = null
$dispatcher : EventDispatcherInterface|null = null
$logger : LoggerInterface|null = null

setMaxPerSecond()

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

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

stringifyAddresses()

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

        
On this page

Search results