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"))