Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60f022c

Browse files
committed
Use getContent instead of json_encode
1 parent 8f4f9ab commit 60f022c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/OhMySmtp/Transport/OhMySmtpApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function doSendApi(SentMessage $sentMessage, Email $email, Envelope $e
6767
}
6868

6969
if (200 !== $statusCode) {
70-
throw new HttpTransportException('Unable to send an email: '.json_encode($result), $response);
70+
throw new HttpTransportException('Unable to send an email: '.$response->getContent(false), $response);
7171
}
7272

7373
$sentMessage->setMessageId($result['id']);

0 commit comments

Comments
 (0)