MailTransportFailedException example

return;
        }

        $deliveryAddress = $this->configService->getString('core.mailerSettings.deliveryAddress');
        if ($deliveryAddress !== '') {
            $email->addBcc($deliveryAddress);
        }

        try {
            $this->mailer->send($email$envelope);
        } catch (\Throwable $e) {
            throw new MailTransportFailedException($failedRecipients$e);
        }
    }
}
Home | Imprint | This part of the site doesn't use cookies.