Update notification service

This commit is contained in:
MacRimi
2026-03-03 20:09:38 +01:00
parent 2bee28a1d8
commit efc2295b8d
2 changed files with 4 additions and 1 deletions
@@ -433,10 +433,13 @@ class EmailChannel(NotificationChannel):
try:
if self.tls_mode == 'ssl':
server = smtplib.SMTP_SSL(self.host, self.port, timeout=self.timeout)
server.ehlo()
else:
server = smtplib.SMTP(self.host, self.port, timeout=self.timeout)
server.ehlo()
if self.tls_mode == 'starttls':
server.starttls()
server.ehlo() # Re-identify after TLS upgrade
if self.username and self.password:
server.login(self.username, self.password)