diff --git a/README.md b/README.md index f0ecb2f..dfcbe5a 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,12 @@ Note: Plugin folder is case-sensitive. Use Sendgrid to send emails --------------------------- +### Configuration with the user interface + +Set your API credentials on the settings page and set the mail transport to "sendgrid". + +### Configuration with the config file + Define those constants in your `config.php` file to send notifications with Sendgrid: ```php diff --git a/Test/EmailHandlerTest.php b/Test/EmailHandlerTest.php index 5a4fe4c..28067ed 100644 --- a/Test/EmailHandlerTest.php +++ b/Test/EmailHandlerTest.php @@ -15,7 +15,7 @@ public function testSendEmail() { $this->container['httpClient'] ->expects($this->once()) - ->method('postForm') + ->method('postFormAsync') ->with( 'https://api.sendgrid.com/api/mail.send.json', $this->anything(),