SendGrid
class SendGrid extends Mailer (View source)
Mailer to be used with SendGrid Web API
Properties
protected HttpClient | $httpClient | from Mailer | |
protected string | $serverToken | from Mailer |
Methods
No description
No description
If a Response is not successful it will be passed to this method each Mailer should then throw an HttpException with an optional ApiException to help identify the problem.
No description
Details
at line 35
setServerToken($serverToken)
Boolean
send(MessageInterface $message)
protected array
getHeaders()
Return a key -> value array of headers
example: array('X-Header-Name' => 'value')
at line 47
protected string[]
getFiles(MessageInterface $message)
Return an key -> value array of files
example: array('attachmentname.jpg' => '/path/to/file.jpg')
at line 26
protected string
getEndpoint()
at line 83
protected string
format(MessageInterface $message)
Return a a string formatted for the correct Mailer endpoint.
Postmark this is Json, SendGrid it is a urlencoded parameter list
at line 67
protected
handle(ResponseInterface $response)
If a Response is not successful it will be passed to this method each Mailer should then throw an HttpException with an optional ApiException to help identify the problem.