diff --git a/src/Symfony/Component/Mailer/Exception/UnsupportedHostException.php b/src/Symfony/Component/Mailer/Exception/UnsupportedHostException.php index c3390e1d2b..94feb66267 100644 --- a/src/Symfony/Component/Mailer/Exception/UnsupportedHostException.php +++ b/src/Symfony/Component/Mailer/Exception/UnsupportedHostException.php @@ -54,7 +54,7 @@ class UnsupportedHostException extends LogicException } $package = self::HOST_TO_PACKAGE_MAP[$provider] ?? null; if ($package && !class_exists($package['class'])) { - parent::__construct(sprintf('Unable to send emails via "%s" as the bridge is not installed. Try running "composer require %s".', $host, $package['package'])); + parent::__construct(sprintf('Unable to send emails via "%s" as the bridge is not installed. Try running "composer require %s".', $provider, $package['package'])); return; }