Skip to content

Commit 745f75c

Browse files
author
Herbie (Christian) Keuerleber
committed
use correct array syntax for recipients
1 parent 6eb4d0b commit 745f75c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Domain/Model/Mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(array $mailData)
4343
$this->mailData = $mailData;
4444

4545
$this->body = Arrays::getValueByPath($this->mailData, 'HTML');
46-
$this->recipients = Arrays::getValueByPath($this->mailData, 'To.0.Address');
46+
$this->recipients = Arrays::getValueByPath($this->mailData, 'To');
4747
$this->subject = Arrays::getValueByPath($this->mailData, 'Subject');
4848
}
4949

Classes/Module/MailPit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function checkRecipientAddress(string $address): void
112112
{
113113
$recipients = $this->currentMail->getRecipients();
114114
foreach ($recipients as $recipient) {
115-
if ($recipient === $address) {
115+
if ($recipient['Address'] === $address) {
116116
return;
117117
}
118118
}

0 commit comments

Comments
 (0)