From b6f8ed69ec93cb11c6ef4fa9abd8ee546a465f4d Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 23 Apr 2021 09:16:57 +0200 Subject: [PATCH] use correct spelling when accessing the SMTP php.ini value --- .../Mailer/Tests/Transport/NativeTransportFactoryTest.php | 2 +- .../Component/Mailer/Transport/NativeTransportFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php b/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php index 630113dbdc225..35f48ea4ccda4 100644 --- a/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php +++ b/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php @@ -111,7 +111,7 @@ public function testCreate(string $dsn, string $sendmailPath, string $smtp, stri { self::$fakeConfiguration = [ 'sendmail_path' => $sendmailPath, - 'smtp' => $smtp, + 'SMTP' => $smtp, 'smtp_port' => $smtpPort, ]; diff --git a/src/Symfony/Component/Mailer/Transport/NativeTransportFactory.php b/src/Symfony/Component/Mailer/Transport/NativeTransportFactory.php index 358200b09081c..8afa53cc43ae6 100644 --- a/src/Symfony/Component/Mailer/Transport/NativeTransportFactory.php +++ b/src/Symfony/Component/Mailer/Transport/NativeTransportFactory.php @@ -39,7 +39,7 @@ public function create(Dsn $dsn): TransportInterface // Only for windows hosts; at this point non-windows // host have already thrown an exception or returned a transport - $host = ini_get('smtp'); + $host = ini_get('SMTP'); $port = (int) ini_get('smtp_port'); if (!$host || !$port) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy