diff --git a/app/Jobs/LoadPostmarkHistory.php b/app/Jobs/LoadPostmarkHistory.php index 0de75ad432..5d6d0fe532 100644 --- a/app/Jobs/LoadPostmarkHistory.php +++ b/app/Jobs/LoadPostmarkHistory.php @@ -69,6 +69,16 @@ class LoadPostmarkHistory extends Job $details = $this->postmark->getOutboundMessageDetails($message['MessageID']); $str .= sprintf('%s
', $details['subject']); + $event = $details['messageevents'][0]; + $str .= sprintf('%s | %s
', $event['Type'], $this->account->getDateTime($event['ReceivedAt'], true)); + if ($message = $event['Details']['DeliveryMessage']) { + $str .= sprintf('%s
', $message); + } + if ($server = $event['Details']['DestinationServer']) { + $str .= sprintf('%s
', $server); + } + + /* if (count($details['messageevents'])) { $event = $details['messageevents'][0]; $str .= sprintf('%s | %s
', $event['Type'], $this->account->getDateTime($event['ReceivedAt'], true)); @@ -81,6 +91,7 @@ class LoadPostmarkHistory extends Job } else { $str .= trans('texts.processing') . '...'; } + */ $str .= '

'; }