diff --git a/lib/Mailer/Methods/SendGrid.php b/lib/Mailer/Methods/SendGrid.php index 5c45c8bb62..bedc80e58a 100644 --- a/lib/Mailer/Methods/SendGrid.php +++ b/lib/Mailer/Methods/SendGrid.php @@ -58,7 +58,7 @@ class SendGrid { 'headers' => array( 'Authorization' => $this->auth() ), - 'body' => urldecode(http_build_query($body)) + 'body' => http_build_query($body) ); } } \ No newline at end of file diff --git a/tests/unit/Mailer/Methods/SendGridCest.php b/tests/unit/Mailer/Methods/SendGridCest.php index 3b2880276f..8be56c88cc 100644 --- a/tests/unit/Mailer/Methods/SendGridCest.php +++ b/tests/unit/Mailer/Methods/SendGridCest.php @@ -54,7 +54,7 @@ class SendGridCest { expect($request['method'])->equals('POST'); expect($request['headers']['Authorization']) ->equals('Bearer ' . $this->settings['api_key']); - expect($request['body'])->equals(urldecode(http_build_query($body))); + expect($request['body'])->equals(http_build_query($body)); } function itCanDoBasicAuth() {