From 49a2eb20c54e11aca6694a9bec024945341cd2ca Mon Sep 17 00:00:00 2001 From: AuditAIH <145266260+AuditAIH@users.noreply.github.com> Date: Tue, 24 Jun 2025 09:00:36 +0800 Subject: [PATCH] Update smtp.py and fix the bug causing email sending failure under WSL2. --- api/libs/smtp.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/libs/smtp.py b/api/libs/smtp.py index 6f2a487678..b94386660e 100644 --- a/api/libs/smtp.py +++ b/api/libs/smtp.py @@ -22,11 +22,9 @@ class SMTPClient: if self.use_tls: if self.opportunistic_tls: smtp = smtplib.SMTP(self.server, self.port, timeout=10) - # 发送EHLO命令并指定HELO域名为服务器地址 # Send EHLO command with the HELO domain name as the server address smtp.ehlo(self.server) smtp.starttls() - # 重新发送EHLO命令以标识TLS会话 # Resend EHLO command to identify the TLS session smtp.ehlo(self.server) else: