8000 [Mailer] Add a comment to avoid more wrong PRs on this piece of code · symfony/symfony@444e616 · GitHub
[go: up one dir, main page]

Skip to content

Commit 444e616

Browse files
committed
[Mailer] Add a comment to avoid more wrong PRs on this piece of code
1 parent 119ba3b commit 444e616

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Mailer/Transport/Smtp/EsmtpTransport.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ protected function doHeloCommand(): void
106106

107107
/** @var SocketStream $stream */
108108
$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
109112
if (!$stream->isTLS() && \defined('OPENSSL_VERSION_NUMBER') && \array_key_exists('STARTTLS', $capabilities)) {
110113
$this->executeCommand("STARTTLS\r\n", [220]);
111114

0 commit comments

Comments
 (0)
0