Skip to content

Commit d1f5c69

Browse files
authored
Merge pull request #2 from PhantPHP/fix-sender
Fix e-mail sending
2 parents 2274bab + 550bcf1 commit d1f5c69

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

component/Service/SendinblueEmailSender.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public function send(Email $email): bool
3030

3131
$body = [
3232
'sender' => [
33-
'email' => (string)$email->from->getEmailAddress(),
34-
'name' => $email->from->getName(),
33+
'email' => (string)$email->from->emailAddress,
34+
'name' => $email->from->name,
3535
],
3636
'to' => [
3737
[
38-
'email' => (string)$email->to->getEmailAddress(),
39-
'name' => $email->to->getName(),
38+
'email' => (string)$email->to->emailAddress,
39+
'name' => $email->to->name,
4040
],
4141
],
4242
'subject' => $email->subject,

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.0",
13+
"php": ">=8.1",
1414
"phant/data-structure": "4.*",
1515
"phant/domain-name": "2.*",
1616
"guzzlehttp/guzzle": "^7.4"

0 commit comments

Comments
 (0)