Sendgrid
extends AbstractHttp
in package
implements
TransportInterface
Sendgrid API transport class
Tags
Table of Contents
Interfaces
- TransportInterface
- Mail transport interface
Properties
- $client : mixed
- Client
Methods
- __construct() : mixed
- Create Office 365 object
- createClient() : Sendgrid
- Create the API client
- getClient() : mixed
- Get client
- hasClient() : bool
- Has client
- parseOptions() : array<string|int, mixed>
- Parse options
- send() : mixed
- Send the message
- setClient() : AbstractHttp
- Set client
Properties
$client
Client
protected
mixed
$client
= null
Methods
__construct()
Create Office 365 object
public
__construct([array<string|int, mixed>|string|null $options = null ]) : mixed
Parameters
- $options : array<string|int, mixed>|string|null = null
createClient()
Create the API client
public
createClient(array<string|int, mixed>|string $options) : Sendgrid
Parameters
- $options : array<string|int, mixed>|string
Tags
Return values
SendgridgetClient()
Get client
public
getClient() : mixed
hasClient()
Has client
public
hasClient() : bool
Return values
boolparseOptions()
Parse options
public
parseOptions(array<string|int, mixed>|string $options) : array<string|int, mixed>
Parameters
- $options : array<string|int, mixed>|string
Tags
Return values
array<string|int, mixed>send()
Send the message
public
send(Message $message) : mixed
Parameters
- $message : Message
setClient()
Set client
public
setClient(mixed $client) : AbstractHttp
Parameters
- $client : mixed