Add Mailgun API as mail transport

This commit is contained in:
Frederic Guillot
2015-06-07 22:17:50 -04:00
parent 4f32352fe6
commit e22da9d32a
15 changed files with 153 additions and 33 deletions

View File

@@ -53,7 +53,15 @@ class FakeHttpClient
return json_encode($this->data, JSON_PRETTY_PRINT);
}
public function post($url, array $data, array $headers = array())
public function postJson($url, array $data, array $headers = array())
{
$this->url = $url;
$this->data = $data;
$this->headers = $headers;
return true;
}
public function postForm($url, array $data, array $headers = array())
{
$this->url = $url;
$this->data = $data;