This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new 1b8ec694 Add start_tls to SMTP connection
1b8ec694 is described below

commit 1b8ec694dc2963de285ec33d5137f9e92146eff3
Author: Dave Fisher <[email protected]>
AuthorDate: Thu Mar 5 07:18:44 2026 -0800

    Add start_tls to SMTP connection
    
    * Add start_tls to smtp connection
    
    * Is this change breaking
    
    * Revert "Is this change breaking"
    
    This reverts commit ad7efe7da221979a41477bdeb63846f4e0ba28d8.
---
 atr/mail.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/atr/mail.py b/atr/mail.py
index f15e3c61..492cbc6e 100644
--- a/atr/mail.py
+++ b/atr/mail.py
@@ -135,7 +135,9 @@ async def _send_via_relay(from_addr: str, to_addr: str, 
msg_bytes: bytes) -> Non
     context = ssl.create_default_context()
     context.minimum_version = ssl.TLSVersion.TLSv1_2
 
-    smtp = aiosmtplib.SMTP(hostname=_MAIL_RELAY, port=_SMTP_PORT, 
timeout=_SMTP_TIMEOUT, tls_context=context)
+    smtp = aiosmtplib.SMTP(
+        hostname=_MAIL_RELAY, port=_SMTP_PORT, timeout=_SMTP_TIMEOUT, 
tls_context=context, start_tls=True
+    )
     await smtp.connect()
     log.info(f"Connected to {smtp.hostname}:{smtp.port}")
     await smtp.ehlo()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to