Postmark
class Postmark extends Mailer (View source)
Sends emails to Postmark server
Properties
protected AdapterInterface | $adapter | from Mailer | |
protected string | $serverToken | from Mailer |
Methods
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
__construct(AdapterInterface $adapter, string $serverToken)
setAdapter(AdapterInterface $adapter)
AdapterInterface
getAdapter()
Boolean
send(MessageInterface $message)
at line 49
protected array
getHeaders()
Return a key -> value array of headers
example: array('X-Header-Name' => 'value')
protected string[]
getFiles(MessageInterface $message)
Return an key -> value array of files
example: array('attachmentname.jpg' => '/path/to/file.jpg')
at line 25
protected string
getEndpoint()
at line 61
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 33
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.