From: David ‘Bombe’ Roden Date: Sun, 10 Nov 2024 20:42:57 +0000 (+0100) Subject: 🚧 Add options for email sender and receiver X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=599cad16bda3bfff5a4f28c69c7155f837d3c83a;p=rhynodge.git 🚧 Add options for email sender and receiver These will replace the email senders and receivers that are configured in a chain, essentially removing them from the chain. --- diff --git a/src/main/java/net/pterodactylus/rhynodge/engine/Options.java b/src/main/java/net/pterodactylus/rhynodge/engine/Options.java index 2803a83..3a08a99 100644 --- a/src/main/java/net/pterodactylus/rhynodge/engine/Options.java +++ b/src/main/java/net/pterodactylus/rhynodge/engine/Options.java @@ -20,6 +20,12 @@ public class Options { @Option(name = "ERROR_EMAIL_RECIPIENT", required = true) public final String errorEmailRecipient = null; + @Option(name = "EMAIL_SENDER", required = true) + public final String emailSender = null; + + @Option(name = "EMAIL_RECIPIENT", required = true) + public final String emailRecipient = null; + @Option(name = "STATE_DIRECTORY", defaultValue = "states") public final String stateDirectory = null; @@ -32,6 +38,8 @@ public class Options { .add("smtpHostname='" + smtpHostname + "'") .add("errorEmailSender='" + errorEmailSender + "'") .add("errorEmailRecipient='" + errorEmailRecipient + "'") + .add("emailSender='" + emailSender + "'") + .add("emailRecipient='" + emailRecipient + "'") .add("stateDirectory='" + stateDirectory + "'") .add("chainDirectory='" + chainDirectory + "'") .toString();