make OTP plugin inherit SMTP relay configuration

Use rms.auth.smtp_relay settings as the primary source for OTP mail transport (host/port/auth/tls/from/replyTo), with existing OTP/env values only as fallback. This lets OTP delivery work immediately when relay settings are already configured.
This commit is contained in:
2026-03-16 14:13:07 +01:00
parent da2923f0e1
commit 1c6d9e8e98
2 changed files with 35 additions and 9 deletions

View File

@@ -6703,6 +6703,7 @@ async function loadPlugins() {
execMode: config.execMode,
simulateHardware: config.simulateHardware,
getSetting: (key, fallback = null) => getPluginSetting(manifest.id, key, fallback),
getPluginSetting: (pluginId, key, fallback = null) => getPluginSetting(pluginId, key, fallback),
commandRunner: runCommand,
executeCapability: async (capability, action, input = {}, meta = {}) => executeCapability(capability, action, input, meta),
emit: (type, data) => broadcastEvent(type, { pluginId: manifest.id, ...data }),