This commit is contained in:
Hillel Coren 2016-01-13 20:06:01 +02:00
parent 175c685032
commit feb62b1253

View File

@ -61,8 +61,8 @@ class Mailer
// Track the Postmark message id // Track the Postmark message id
if (isset($_ENV['POSTMARK_API_TOKEN']) && $response) { if (isset($_ENV['POSTMARK_API_TOKEN']) && $response) {
$json = $response->json(); $json = json_decode((string) $response->getBody());
$messageId = $json['MessageID']; $messageId = $json->MessageID;
} }
$invoice->markInvitationSent($invitation, $messageId); $invoice->markInvitationSent($invitation, $messageId);