From ee4ff38f13f9f2b945a1a09973fcec5183c41227 Mon Sep 17 00:00:00 2001 From: Marc Koch Date: Tue, 15 Jul 2025 11:03:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20remove=20hardcoded=20mail?= =?UTF-8?q?server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Oops 🤦‍♂️ --- src/clear_bookings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clear_bookings.py b/src/clear_bookings.py index 6d0ce09..b3566db 100644 --- a/src/clear_bookings.py +++ b/src/clear_bookings.py @@ -459,7 +459,7 @@ def send_mail_to_organizer( else: print("Using SSL for SMTP connection.") if not is_test: - with smtplib.SMTP_SSL("mail.extrasolar.space", + with smtplib.SMTP_SSL(os.getenv('SMTP_SERVER'), os.getenv('SMTP_PORT', 465), context=ssl_context) as server: server.login(os.getenv("SMTP_USER_NAME", os.getenv("SMTP_EMAIL")), os.getenv("SMTP_PASSWORD"))