Add URL parameter to enable notification of IP changes
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user