8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119ba3b commit 444e616Copy full SHA for 444e616
src/Symfony/Component/Mailer/Transport/Smtp/EsmtpTransport.php
@@ -106,6 +106,9 @@ protected function doHeloCommand(): void
106
107
/** @var SocketStream $stream */
108
$stream = $this->getStream();
109
+ // WARNING: !$stream->isTLS() is right, 100% sure :)
110
+ // if you think that the ! should be removed, read the code again
111
+ // if doing so "fixes" your issue then it probably means your SMTP server behaves incorrectly or is wrongly configured
112
if (!$stream->isTLS() && \defined('OPENSSL_VERSION_NUMBER') && \array_key_exists('STARTTLS', $capabilities)) {
113
$this->executeCommand("STARTTLS\r\n", [220]);
114
0 commit comments