diff --git a/client/dispatch-query.py b/client/dispatch-query.py index 1f8a438..d8eb154 100755 --- a/client/dispatch-query.py +++ b/client/dispatch-query.py @@ -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): diff --git a/client/smtphelper.py b/client/smtphelper.py index f5e3df8..6dd65c7 100644 --- a/client/smtphelper.py +++ b/client/smtphelper.py @@ -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()