We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eb4d0b commit 745f75cCopy full SHA for 745f75c
2 files changed
Classes/Domain/Model/Mail.php
@@ -43,7 +43,7 @@ public function __construct(array $mailData)
43
$this->mailData = $mailData;
44
45
$this->body = Arrays::getValueByPath($this->mailData, 'HTML');
46
- $this->recipients = Arrays::getValueByPath($this->mailData, 'To.0.Address');
+ $this->recipients = Arrays::getValueByPath($this->mailData, 'To');
47
$this->subject = Arrays::getValueByPath($this->mailData, 'Subject');
48
}
49
Classes/Module/MailPit.php
@@ -112,7 +112,7 @@ public function checkRecipientAddress(string $address): void
112
{
113
$recipients = $this->currentMail->getRecipients();
114
foreach ($recipients as $recipient) {
115
- if ($recipient === $address) {
+ if ($recipient['Address'] === $address) {
116
return;
117
118
0 commit comments