Skip to content

Commit

Permalink
Merge pull request #2 from PhantPHP/fix-sender
Browse files Browse the repository at this point in the history
Fix e-mail sending
  • Loading branch information
lennyrouanet authored Oct 24, 2022
2 parents 2274bab + 550bcf1 commit d1f5c69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions component/Service/SendinblueEmailSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public function send(Email $email): bool

$body = [
'sender' => [
'email' => (string)$email->from->getEmailAddress(),
'name' => $email->from->getName(),
'email' => (string)$email->from->emailAddress,
'name' => $email->from->name,
],
'to' => [
[
'email' => (string)$email->to->getEmailAddress(),
'name' => $email->to->getName(),
'email' => (string)$email->to->emailAddress,
'name' => $email->to->name,
],
],
'subject' => $email->subject,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^8.0",
"php": ">=8.1",
"phant/data-structure": "4.*",
"phant/domain-name": "2.*",
"guzzlehttp/guzzle": "^7.4"
Expand Down

0 comments on commit d1f5c69

Please sign in to comment.