Skip to content

Commit

Permalink
Merge pull request #18 from ppavlovic/master
Browse files Browse the repository at this point in the history
MailerQ: smarthost moved to the root of JSON instead under 'mime' key
  • Loading branch information
ppavlovic committed Sep 2, 2022
2 parents a0a9a85 + 20129a0 commit 8c5d400
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ vendor
.project
.settings

.idea
.idea
composer.lock
4 changes: 2 additions & 2 deletions src/Message/MailerQ/Rest/MessageFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function convert(\G4\Mailer\Message $message, array $options)
];

if (isset($options[self::PARAMS][self::SMARTHOST])) {
$body[self::MIME][self::SMARTHOST] = $options[self::PARAMS][self::SMARTHOST];
$body[self::SMARTHOST] = $options[self::PARAMS][self::SMARTHOST];
}

if ($message->getLogId()) {
Expand Down Expand Up @@ -95,4 +95,4 @@ private static function getTags($headers)
throw new \RuntimeException(sprintf('Tags are not resolved. Reason: %s', $exception->getMessage()));
}
}
}
}

0 comments on commit 8c5d400

Please sign in to comment.