From 2814d5520623efe5f48c26f639d3ed6cc5f0d8d2 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 15 Dec 2025 20:17:22 -0800 Subject: Add email integration --- routes.toml.example | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'routes.toml.example') diff --git a/routes.toml.example b/routes.toml.example index ac9a493..f6a2db4 100644 --- a/routes.toml.example +++ b/routes.toml.example @@ -32,6 +32,26 @@ enabled = true server = "https://ntfy.sh" topic = "my-alerts" +# Example: JSON webhook with email notifications +[[route]] +name = "email-webhook" +contentType = "json" +hcaptchaProtected = false +requireToken = false + +[route.email] +enabled = true +to = "admin@example.com" +from = "webhook@example.com" +host = "smtp.example.com" +port = 587 +secure = true +username = "webhook@example.com" +password = "your-smtp-password" +subject = "New Webhook Received" +includeBody = true +includeHeaders = false + # Example: Multipart file upload with token protection [[route]] name = "file-upload" -- cgit v1.2.3-70-g09d2