Add URL parameter to enable notification of IP changes

This commit is contained in:
2026-01-23 00:51:30 +01:00
parent 9f75e5e66b
commit 5744408c92
6 changed files with 36 additions and 13 deletions

View File

@@ -94,7 +94,7 @@ class EmailService:
logging.error(f"Email send failed: to={to} error={e}")
return False
def send_changed_notification(
def send_change_notification(
self,
email,
hostname,
@@ -135,8 +135,8 @@ class EmailService:
"expiry_ttl": hostname.expiry_ttl,
}
subject = f"DDNS hostname expired: {fqdn}"
body = self.expiry_template.render(**template_variables)
subject = f"DDNS hostname changed: {fqdn}"
body = self.change_template.render(**template_variables)
return self.send(email, subject, body)