HumHub Documentation (unofficial)

MailgunApiTransport extends AbstractApiTransport
in package

Tags
author

Kevin Verschaeve

Table of Contents

Constants

HOST  = 'api.%region_dot%mailgun.net'

Properties

$client  : mixed
$host  : mixed
$port  : mixed
$dispatcher  : mixed
$domain  : mixed
$key  : mixed
$lastSent  : mixed
$logger  : mixed
$rate  : mixed
$region  : mixed

Methods

__construct()  : mixed
__toString()  : string
send()  : SentMessage|null
setHost()  : $this
setMaxPerSecond()  : $this
Sets the maximum number of messages to send per second (0 to disable).
setPort()  : $this
doSend()  : void
doSendApi()  : ResponseInterface
doSendHttp()  : ResponseInterface
getLogger()  : LoggerInterface
getRecipients()  : array<string|int, mixed>
stringifyAddresses()  : array<string|int, string>
checkThrottling()  : mixed
getEndpoint()  : string|null
getPayload()  : array<string|int, mixed>
prepareAttachments()  : array<string|int, mixed>

Constants

Properties

Methods

setHost()

public setHost(string|null $host) : $this
Parameters
$host : string|null
Return values
$this

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

setPort()

public setPort(int|null $port) : $this
Parameters
$port : int|null
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>

prepareAttachments()

private prepareAttachments(Email $email, string|null $html) : array<string|int, mixed>
Parameters
$email : Email
$html : string|null
Return values
array<string|int, mixed>

        
On this page

Search results