MailGun
class MailGun extends Mailer (View source)
Properties
protected HttpClient | $httpClient | from Mailer | |
protected string | $serverToken | from Mailer |
Methods
No description
Return a key -> value array of headers
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 33
setServerToken($serverToken)
Boolean
send(MessageInterface $message)
at line 45
protected array
getHeaders()
Return a key -> value array of headers
example: array('X-Header-Name' => 'value')
at line 58
protected string[]
getFiles(MessageInterface $message)
Return an key -> value array of files
example: array('attachmentname.jpg' => '/path/to/file.jpg')
at line 22
protected string
getEndpoint()
at line 81
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 121
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.