Skip to content

Commit 3d8a430

Browse files
committed
Fix : usage of EmailAddressAndName interface
1 parent 792695c commit 3d8a430

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

component/Service/SendinblueEmailSender.php

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

3232
$body = [
3333
'sender' => [
34-
'email' => (string)$email->from->emailAddress,
35-
'name' => $email->from->name,
34+
'email' => (string)$email->from->getEmailAddress(),
35+
'name' => $email->from->getName(),
3636
],
3737
'to' => [
3838
[
39-
'email' => (string)$email->to->emailAddress,
40-
'name' => $email->to->name,
39+
'email' => (string)$email->to->getEmailAddress(),
40+
'name' => $email->to->getName(),
4141
],
4242
],
4343
'subject' => $email->subject,

0 commit comments

Comments
 (0)