SesApiAsyncAwsTransport
extends SesHttpAsyncAwsTransport
in package
Tags
Table of Contents
Properties
- $sesClient : SesClient
- $dispatcher : mixed
- $lastSent : mixed
- $logger : mixed
- $rate : mixed
Methods
- __construct() : mixed
- __toString() : string
- send() : SentMessage|null
- setMaxPerSecond() : $this
- Sets the maximum number of messages to send per second (0 to disable).
- doSend() : void
- getLogger() : LoggerInterface
- getRequest() : SendEmailRequest
- stringifyAddress() : string
- stringifyAddresses() : array<string|int, string>
- checkThrottling() : mixed
- getRecipients() : array<string|int, mixed>
- getSenderFromHeaders() : Address
Properties
$sesClient
protected
SesClient
$sesClient
$dispatcher
private
mixed
$dispatcher
$lastSent
private
mixed
$lastSent
= 0
$logger
private
mixed
$logger
$rate
private
mixed
$rate
= 0
Methods
__construct()
public
__construct(SesClient $sesClient[, EventDispatcherInterface|null $dispatcher = null ][, LoggerInterface|null $logger = null ]) : mixed
Parameters
- $sesClient : SesClient
- $dispatcher : EventDispatcherInterface|null = null
- $logger : LoggerInterface|null = null
__toString()
public
__toString() : string
Return values
stringsend()
public
send(RawMessage $message[, Envelope|null $envelope = null ]) : SentMessage|null
Parameters
- $message : RawMessage
- $envelope : Envelope|null = null
Return values
SentMessage|nullsetMaxPerSecond()
Sets the maximum number of messages to send per second (0 to disable).
public
setMaxPerSecond(float $rate) : $this
Parameters
- $rate : float
Return values
$thisdoSend()
protected
doSend(SentMessage $message) : void
Parameters
- $message : SentMessage
getLogger()
protected
getLogger() : LoggerInterface
Return values
LoggerInterfacegetRequest()
protected
getRequest(SentMessage $message) : SendEmailRequest
Parameters
- $message : SentMessage
Return values
SendEmailRequeststringifyAddress()
protected
stringifyAddress(Address $a) : string
Parameters
- $a : Address
Return values
stringstringifyAddresses()
protected
stringifyAddresses(array<string|int, mixed> $addresses) : array<string|int, string>
Parameters
- $addresses : array<string|int, mixed>
Return values
array<string|int, string>checkThrottling()
private
checkThrottling() : mixed
getRecipients()
private
getRecipients(Email $email, Envelope $envelope) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed>getSenderFromHeaders()
private
static getSenderFromHeaders(Headers $headers) : Address
Parameters
- $headers : Headers