Skip to content

Commit 765aaab

Browse files
committed
fix: if there is no TLS, we still need to connect
1 parent cfd3916 commit 765aaab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/vsc/utils/mail.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def _connect(self):
115115
context = ssl.create_default_context()
116116
s.starttls(context=context)
117117
logging.debug("Started TLS connection")
118+
else:
119+
s.connect()
118120

119121
if self.smtp_auth_user and self.smtp_auth_password:
120122
s.login(user=self.smtp_auth_user, password=self.smtp_auth_password)

0 commit comments

Comments
 (0)