CloudflareTransport
class CloudflareTransport extends AbstractTransport
Properties
| protected HttpClientInterface | $client | The HTTP Client instance. |
Methods
Create a new Cloudflare transport instance.
No description
Get the Cloudflare payload for the given message.
Get the recipients without CC or BCC.
Get the custom headers for the email, excluding the standard ones.
Get the attachments formatted for the Cloudflare API.
Get the address formatted for the Cloudflare API.
Get multiple addresses formatted as strings for the Cloudflare API.
Get the string representation of the transport.
Details
at line 30
__construct(string $accountId, string $key, HttpClientInterface|null $client = null)
Create a new Cloudflare transport instance.
at line 44
protected void
doSend(SentMessage $message)
No description
at line 76
protected array
getPayload(SentMessage $message)
Get the Cloudflare payload for the given message.
at line 100
protected array
getRecipients(Email $email, Envelope $envelope)
Get the recipients without CC or BCC.
at line 110
protected array
getCustomHeaders(Email $email)
Get the custom headers for the email, excluding the standard ones.
at line 130
protected array
getAttachments(Email $email)
Get the attachments formatted for the Cloudflare API.
at line 159
protected string|array
formatAddress(Address $address)
Get the address formatted for the Cloudflare API.
at line 174
protected array
stringifyAddresses(array $addresses)
Get multiple addresses formatted as strings for the Cloudflare API.
at line 182
string
__toString()
Get the string representation of the transport.