1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 21:56:31 +02:00

Updated MandrillHandler to set CURLOPT_RETURNTRANSFER to true to ensure the API response isn't output directly

This commit is contained in:
Adam Nicholson
2014-11-26 13:13:06 +00:00
parent ab41ed9a94
commit 00b16667d3

View File

@@ -56,6 +56,7 @@ class MandrillHandler extends MailHandler
curl_setopt($ch, CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
'key' => $this->apiKey,
'raw_message' => (string) $message,