Ticket #6524 regression closed fixed
twisted.mail.smtp.ESMTPClient tries to STARTTLS multiple times
|Reported by:||exarkun||Owned by:||exarkun|
(diff, github, buildbot, log)
If ESMTPClient is used to connect to an SMTP server that offers the STARTTLS feature, it will try to use it. If the SMTP server still offers the STARTTLS after the command has been used once to start TLS, ESMTPClient will try to use it again. This is useless at best, and in practice probably always triggers an error from the server and prevents mail from being sent.
This is a regression introduced by #3989.