Skip to content

Commit

Permalink
Merge pull request #156 from christaggart/fixsend-data-as-json
Browse files Browse the repository at this point in the history
Set encoding type to json for Postmark send()s
  • Loading branch information
roelvanduijnhoven authored Nov 4, 2023
2 parents fb567a4 + 67b3189 commit bbeb128
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Service/PostmarkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function send(Message $message): array

$response = $this->prepareHttpClient('/email')
->setMethod(HttpRequest::METHOD_POST)
->setEncType('application/json')
->setRawBody(json_encode($this->filterParameters($parameters)))
->send();

Expand Down

0 comments on commit bbeb128

Please sign in to comment.