[Mailer] Add a comment to avoid more wrong PRs on this piece of code
This commit is contained in:
parent
119ba3b742
commit
444e616f6b
@ -106,6 +106,9 @@ class EsmtpTransport extends SmtpTransport
|
||||
|
||||
/** @var SocketStream $stream */
|
||||
$stream = $this->getStream();
|
||||
// WARNING: !$stream->isTLS() is right, 100% sure :)
|
||||
// if you think that the ! should be removed, read the code again
|
||||
// if doing so "fixes" your issue then it probably means your SMTP server behaves incorrectly or is wrongly configured
|
||||
if (!$stream->isTLS() && \defined('OPENSSL_VERSION_NUMBER') && \array_key_exists('STARTTLS', $capabilities)) {
|
||||
$this->executeCommand("STARTTLS\r\n", [220]);
|
||||
|
||||
|
Reference in New Issue
Block a user