🐛 fix: remove hardcoded mailserver

Oops 🤦‍♂️
This commit is contained in:
Marc Koch 2025-07-15 11:03:11 +02:00
parent 0b3edff6f0
commit ee4ff38f13
Signed by: marc
GPG Key ID: 12406554CFB028B9
1 changed files with 1 additions and 1 deletions

View File

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