fix: smtp connection

This commit is contained in:
2024-02-17 18:29:16 +01:00
parent 8c7a748222
commit 49d46dc8f7
2 changed files with 3 additions and 2 deletions

View File

@@ -33,7 +33,8 @@ def email_send(dispatch_uuid, email_address, message, smtp_target, smtp_user, sm
return
subject = "Atlantis Dispatch"
smtphelper.smtp_send(smtp_target, smtp_user, smtp_pass, email_address, subject, message)
smtphelper.smtp_send(smtp_target, smtp_user, smtp_pass, email_address,
subject, message)
confirm_dispatch(dispatch_uuid)
def ntfy_api_get_topic(ntfy_api_server, ntfy_api_token, username):

View File

@@ -13,7 +13,7 @@ def smtp_send(server, user, password, recipient, subject, body):
# SMTP server details
smtp_server = server
smtp_port = 587 # Default port for TLS connection
smtp_port = 25 # Default port for TLS connection
# Create a message
message = MIMEMultipart()