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
if (isset($_ENV['POSTMARK_API_TOKEN']) && $response) {
$json = $response->json();
$messageId = $json['MessageID'];
$json = json_decode((string) $response->getBody());
$messageId = $json->MessageID;
}
$invoice->markInvitationSent($invitation, $messageId);