src/FondOfSpryker/Zed/AvailabilityAlert/Communication/Plugin/Mail/AvailabilityAlertMailTypePlugin.php
protected function setRecipient(MailBuilderInterface $mailBuilder)
    {
        $availabilityAlertSubscriptionTransfer = $mailBuilder->getMailTransfer()
            ->requireAvailabilityAlertSubscription()
            ->getAvailabilityAlertSubscription();

        $mailBuilder->addRecipient(
            $availabilityAlertSubscriptionTransfer->getEmail(),
            ''
        );

        return $this;
    }
protected function setRecipient(MailBuilderInterface $mailBuilder)
    {
        $availabilityAlertSubscriptionTransfer = $mailBuilder->getMailTransfer()
            ->requireAvailabilityAlertSubscription()
            ->getAvailabilityAlertSubscription();

        $mailBuilder->addRecipient(
            $availabilityAlertSubscriptionTransfer->getEmail(),
            ''
        );

        return $this;
    }
@param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder

@return $this