mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-06 06:21:36 +01:00
fix: smtp connection
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user