message->to as $to => $name) { if (str_contains($to, '+unsubscribe')) { $unsubscriptionEmail = $to; break; } } if (!$unsubscriptionEmail) { throw new UnsubscriptionNotFound(); } return new UnsubscribedEmail($this->message->fromAddress, $unsubscriptionEmail); } }